FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Windows Phone Installer (bug free) (https://fileforums.com/showthread.php?t=102774)

bunti_o4u 09-05-2019 14:41

Windows Phone Installer (bug free)
 
14 Attachment(s)
This is the bug free version of Windows Phone Installer script by Razor12911 with added functionality such as:
  • System Configuration page and About Game page.
  • Component Support (with two seperate section for Language Pack and for Option Component.)
  • Easy to disable installer Pages i.e. Autorun page, About Game page, System Configuration page and Component Page.
  • Enable or disable Music.
  • All options related to installer are available in the main script itself.

Changes done:
  • Added New Design for Autorun. (based on WPI UA Mod by PrinceGupta).
  • Added lockscreen removal from left click. (based on PsYcHo_RaGE's BCI v7.2)
  • Added pages for about game, system configuration, component support.
  • Fixed button refresh bug.
  • Added round edge button support. (based on PsYcHo_RaGE's BCI v7.2)
  • Added Fonts in installer.
  • Added Music on/off button.
  • Added WinTB support for Task-bar Progress, Thumbnail Preview and Taskbar Buttons.
  • Added hyperlink in About Game page.
  • Added WPI style Message Box.
  • Added WPI style Browse Directory and Browse Group windows.
  • Added WPI style Bevel.
  • Added WPI style title lables.
  • Added windows 10 style browse directory and group directory button.
  • Added support to disable component checkbox if associated files are not available.
  • Added support to select atleast one language pack and selecting one language pack at a time.
  • Added options to create Start Menu Icons and deselecting Start Menu Icon option disables the browse button.
  • Added support for auto calculating required disk space based on selection of component.
  • Added Partition Space, Free Space Availabel (and %) and Space Aequired lables.
  • Added support to disable next button if free space is less then space required.
  • Added support for auto calculating progress percentage for each input file based on selection of component.
  • Added CurrentFile, Percentage, Time Elapsed & Time Remaining Label.
  • Added support for deletion of destination directory if installation is cancelled.
  • Added support for pZLib v3, ZTool, XTool, oodle, Lolz etc.
  • Added support for path selection if files are not in source directory.
  • Added Uninstall delete section.
  • Various Bugs Removed.
  • Faster loading of Installer.

Credits:
  • Windows Phone Installer by Razor12911
  • Bass Audio Library (BASS.dll) by un4seen developments
  • Botva2 Library (Botva2.dll) by South.Tver
  • CallbackCtrl Plugin (CallbackCtrl.dll) by RESTOOLS
  • System Information Plugin (ISSysInfo.dll) by peterf1999
  • Library for archive unpacking, PB and other stuff (ISDone.dll) by ProFrager
  • Library for FreeArc unpacking (UnArc.dll) by Bulat Ziganshin
Remark:
Please forgive me if i forgot to mention anyone. There is no intention of infringing anyone's copyright.

New version of Knight Compressor is out. Please check the thread: Click here.

@Cesar82 Thanks for adding DiskSpan GUI v2 support. Please check the Post for WPI with DiskSpan GUI: Click here.

Screenshots:

Jiva newstone 09-05-2019 20:19

Good work, Thanks bunti_o4u

exorc 10-05-2019 04:52

Not found for me

Compile Error!
Line: 939
Error: Column 8:
Unknown type 'TTimer'

mausschieber 10-05-2019 06:42

Quote:

Originally Posted by exorc (Post 480926)
Not found for me

Compile Error!
Line: 939
Error: Column 8:
Unknown type 'TTimer'

It uses the Inno Setup Enhanced Unicode version

devil777 19-05-2019 06:47

With all due respect sir's can you please help this newbie with Arc.ini...
I will not try to be a pain.. And won't try to kill you time, I'm a new student in this page you guys are like my teacher.

Please teacher help me with Arc.ini file from the file you've given.

devil777 19-05-2019 06:50

After compressing in a combination of knights compressor when I try to unpack it using setup.exe (also from thethe script of yours) , I get unknown compression method.. zlib isn't supported. Please help in best and easiest way.

78372 19-05-2019 07:07

Quote:

Originally Posted by devil777 (Post 481063)
After compressing in a combination of knights compressor when I try to unpack it using setup.exe (also from thethe script of yours) , I get unknown compression method.. zlib isn't supported. Please help in best and easiest way.

What method are you using?

BTW, nice to see another Bangladeshi here :)

bunti_o4u 19-05-2019 08:59

Quote:

Originally Posted by devil777 (Post 481063)
After compressing in a combination of knights compressor when I try to unpack it using setup.exe (also from thethe script of yours) , I get unknown compression method.. zlib isn't supported. Please help in best and easiest way.

you are getting this error because installer doesn't have pzlib files..

set the decompression method in [Resources] section. simply put 1 against each method which you are using...

e.g. if you have compressed game with pzlib3+srep+lolz then:
[Resources]
SRepInside=1
pZlib_x64=1
Lolz_x64=1

I hope it is clear now..

devil777 28-05-2019 05:14

Thanks
 
Quote:

Originally Posted by bunti_o4u (Post 481066)
you are getting this error because installer doesn't have pzlib files..

set the decompression method in [Resources] section. simply put 1 against each method which you are using...

e.g. if you have compressed game with pzlib3+srep+lolz then:
[Resources]

SRepInside=1
pZlib_x64=1
Lolz_x64=1

I hope it is clear now..

Thanks boss bunti_o4u.... for helping me out..

devil777 28-05-2019 05:22

The proper edited one
 
3 Attachment(s)
Attention.!!!

This the version of mr.Bunti_o4u's bug free WPI
Which is indeed edited by mr.Bunti's direction..

edit: previously added rar file wasn't uploaded in compressed format.

# added WPInoneWEBfunctionSCRIPT.It doesn't bear the weblink or referred website link.

# Lolz and LolzAlpha are both different version.They Share only Basic Command of Cls.ini.Lolz is the first publicly released v21a7 and LolzAlpha is v22c4b (they are for unpckaging purpose only).Advice is not to use both at the same time in the script.

# LZMAx64 is the 64 bit one which usually can be found in the forums.(described it as others may try to run it in 32bit machines).Don't know if it works in 32bit machine.The general 32bit lzma was less then 100KB as i remember.

to add other tools https://fileforums.com/showpost.php?...9&postcount=16
as well as search in the forum

devil777 28-05-2019 05:27

Wonder if you could help me out?
 
Quote:

Originally Posted by 78372 (Post 481064)
What method are you using?

BTW, nice to see another Bangladeshi here :)

Boss problem been solved by enabling the zlib option in the script

But I wonder why I have compressed a file using xtool_pzlib+srep m5 a16+Lzma:d512+msc.... And when I try to decompress it using the script (though I've enabled xtool_pzlib In the script ) I get xpzlib method isn't supported....

Uhh boss one question if use lolz_x64 + pzlibv3 ... to compress a game in 64 pc .. will I be able to decompress it in 32 bit pc?.

bunti_o4u 28-05-2019 06:59

Quote:

Originally Posted by devil777 (Post 481145)
Ohh boss I've found that zlib was disabled from the script and I been able to solve the problem... Thanks for your reply..

And boss I wonder why I use xtool_pzlib+step m5 a16+lzma:d512m+msc.... for compression

And try to decompress it using the script I get xpzlib method isn't supported( I've used knight compressor
given here) , I've enabled xtool_pzlib In the script....?

And boss if I compress a file using pzlib v3 and lolz_x64... will I be able to decompress or install the file in 32 bit pc?

On 64bit machine you can run both 32bit as well as 64 bit version of application. But on 32 bit machine you can run only 32bit applications.

Pl don't post the same question twice..

devil777 29-05-2019 07:48

Bunti Dada help me with lolz_86 version...(in knight compressor)
 
Quote:

Originally Posted by bunti_o4u (Post 481147)
On 64bit machine you can run both 32bit as well as 64 bit version of application. But on 32 bit machine you can run only 32bit applications.

Pl don't post the same question twice..

I apologize for my serious mistake bunti Dada but.. is the script's Executable operation works only in desktop icon box.. I mean I've edited the Executable path 1 (ME/Far cry New daw || Far cry new dawn.exe to : Wildlands || GRW.exe ) when I try to install the files with only Desktop ICon box checked I DONT get any desktop icon.. But when I install files or file with both DESKTOP ICON and Start MENU ICON box checked I do get a shortcut icon this time.. I want your kind help that I would get the shortcut icon only in Desktop ICon box checked..
In working previous script from razor12911... it didn't happened bunti_04u.. dada

And SCEOND HELP (2)
Can you help me with implanting lolz_x86 in Knight compressor.... or on short I want to use lolz_x86 instead of 64version in the compressor ?? I have friends who own 32bit machine.. so please help me out..

bunti_o4u 29-05-2019 08:24

Quote:

Originally Posted by devil777 (Post 481159)
I apologize for my serious mistake bunti Dada but.. is the script's Executable operation works only in desktop icon box.. I mean I've edited the Executable path 1 (ME/Far cry New daw || Far cry new dawn.exe to : Wildlands || GRW.exe ) when I try to install the files with only Desktop ICon box checked I DONT get any desktop icon.. But when I install files or file with both DESKTOP ICON and Start MENU ICON box checked I do get a shortcut icon this time.. I want your kind help that I would get the shortcut icon only in Desktop ICon box checked..
In working previous script from razor12911... it didn't happened bunti_04u.. dada

And SCEOND HELP (2)
Can you help me with implanting lolz_x86 in Knight compressor.... or on short I want to use lolz_x86 instead of 64version in the compressor ?? I have friends who own 32bit machine.. so please help me out..

Thanx for pointing out the bug..

Fixed the bug and uploaded the updated script..

For x86 compression: just copy paste lolz_x86.exe in the resource folder and change the lolz_x64.exe with lolz_x86.exe in arc.ini file..

devil777 10-06-2019 23:41

Error with Lzma...
 
Bunti Dada I do get strange kind of error... With Lzma.
With your provided compressor I've compressed data using this algorithm "srep:m3f:a32+delta+lzma:177mb:normal:bt4:273:mc10 00:lc8 "
When I try to decompress the data in the Wpi I got this error " archive header is corrupted.unarc.'ll returned an error code 14. ERROR : archive structure is corrupted (decompression of control block failed ) "

I've included Lzma in the wpu script and also put Lzma(external compressor) in Arc.ini... any fix dada.
I wonder how other repacker work it out they use Lzma as well in the script and also in arc.ini I... seek help

Plus I try to put a long name like "Tom Clancy Ghost recon wildlands" in app name and Inno setup failed to compile but if a short name like "Ghost recon wildlands" is used it can compile it ...
I would like to have a wonderful help in case of using long name error in the in the installer....

bunti_o4u 11-06-2019 09:01

2 Attachment(s)
Quote:

Originally Posted by devil777 (Post 481323)
Bunti Dada I do get strange kind of error... With Lzma.

Compressed and extracted the files with lzma and there is no such issue. below needs to be done:

Add below in the Arc.ini file
Code:

[External compressor:lzma]
header = 0
unpackcmd = lzma d lzma{:option} <stdin> <stdout>

Add below in innoscript

Code:

[Resources]
lzma=1

[Files]
#ifdef lzma
Source: Resources\UnpackTools\lzma\lzma.exe; DestDir: {tmp}; Flags: dontcopy;
#endif

function InitializeSetup:Boolean;
begin
  #ifdef lzma
  ExtractTemporaryFile('lzma.exe');
  #endif


I have checked it (long name issue) and it's working fine...

devil777 12-06-2019 08:22

Thanks dada just one last question
 
Dada I hadn't put Lzma configuration.. on initializesetup:Boolean... I'm a newbie... Thanks dada Bunti....
One last question would it be "RRGGBB" .....-in the line of "BBGGRR"... hope you understand my question.. I had found BBGGRR in you script so I want to know wouldn't it be "RRGGBB".. not trying to spam posts..

bunti_o4u 12-06-2019 09:24

Quote:

Originally Posted by devil777 (Post 481345)
Dada I hadn't put Lzma configuration.. on initializesetup:Boolean... I'm a newbie... Thanks dada Bunti....
One last question would it be "RRGGBB" .....-in the line of "BBGGRR"... hope you understand my question.. I had found BBGGRR in you script so I want to know wouldn't it be "RRGGBB".. not trying to spam posts..

Generally colors are quoted as RRGGBB but in this script, colors are coded in the manner "BBGGRR" that is why I have written like this

So lets suppose you want "Red color" for your script and the corresponding hex code is FF0000. if you write the hex color code "FF0000" in the script, the script will translate it as "0000FF which is Blue color".

I hope I made it clear...

devil777 15-06-2019 08:17

Thanks and in case of password
 
Bunti Dada sorry for my late reply... Thanks you've made it clear about BBGGRR matter.. but I want to know if add password more thank numbers(like 1235..) should I use "the password" or ' the password'... as an example I've use pack.4444 as password and I've used "pack.4444" to identify "pack". Should I use any(more or other) caption to use both number and word as password in the script..

Want to learn cause I'm a newbie dada (other matters been cleared) but will ask if there is something unclear

bunti_o4u 17-06-2019 02:07

Quote:

Originally Posted by devil777 (Post 481373)
I want to know if add password more thank numbers(like 1235..) should I use "the password" or ' the password'..

You can give any password but it should not consist of space and it is common password across all the archives..

You can modify the script and can use the different password for each archive..

Fsi - RePack 23-06-2019 03:56

Doesn't Component page not Prewiev

bunti_o4u 24-06-2019 09:25

Quote:

Originally Posted by Fsi - RePack (Post 481461)
Doesn't Component page not Prewiev

You have to enable it first from the [Installer] section. Set the value of Component as 1.

devil777 25-06-2019 05:07

In case of uninstall
 
Bunti_04u Dada files do uninstall correctly but everything in uninstall folder do remains hidden except uninstall.exe and uninstall.dat.... but boss the repack that repackers make do have everything in the uninstall folder unhidden or visible..

Even their uninstall program in control panel do have setup.exe's icon.. Hope you understood the matter I am telling you. Also when I go to uninstall the game or program that have been installed by the setup.exe ( setup.exe has been made by Inno script) don't contain icon and it merely 67.0KB (though the game size is 34GB)..
Please help out

bunti_o4u 25-06-2019 09:29

Quote:

Originally Posted by devil777 (Post 481492)
files do uninstall correctly but everything in uninstall folder do remains ...

find the below code:

if (CurStep = ssPostInstall) and not ISDoneError then
begin

and paste the below code after begin:

Code:

  RegWriteDWordValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#AppName}_is1', 'EstimatedSize', CalcSize*1024)
  RegWriteStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#AppName}_is1', 'DisplayIcon',  ExpandConstant('{app}\{#E1[60]}\{#E1[61]}'))

It will show the uninstall icon as well as size...

devil777 25-06-2019 23:04

Can you please
 
Bunti Dada please I'm getting error
And can you help me with the size it's not specifying correctly . Please Bunti Dada can you write the codes in a text and attach it in a post. I'm not telling you to update the .iss file

A newbie and don't know coding

bunti_o4u 26-06-2019 02:15

Quote:

Originally Posted by devil777 (Post 481503)
I'm getting error
And can you help me with the size it's not specifying correctly.

The code I have mentioned in previous post is working fine. It must be with script... Either you have modified the script that causing the error or you are not pasting the code at right place...

Post your script...

devil777 26-06-2019 10:40

Working but with.. size
 
Dada sorry I was busy.. my exam was going on
Shouldn't I write " RegWriteDWordValue.............. EstimatedSize', CalcSize*1024) " in a single line..

Also in case of icon " RegWriteStringValue(........... ExpandConstant('{app}\{#E1[60]}\{#E1[61]}')) "

Should I write those codes... I mean I write this calculate size code after ISDoneError the begin in one line after that calculate code.... I wrote display icon code in one line from RedWriteStringValue..... to ....
ExpandConstant('{app}\{#E1[60]}\{#E1[61]}')) in one line is that okay..

Edited:

I sincerely apologize... I had left space after uninstall.. like unista ll... that's why code wasn't working also please reply about writing the codes in one line.. it's above " Edited: "
I had written size 129 in [installer]... Also in uncompressed size of archive 129 (in MB) .. files installed correctly but size wasn't showing in control panel.

devil777 27-06-2019 05:07

Here it is dada
 
Bunti Dada here is my script (with resources)....

###it has been properly edited. Here it is.

https://fileforums.com/showpost.php?...5&postcount=10

bunti_o4u 27-06-2019 10:02

1 Attachment(s)
Quote:

Originally Posted by devil777 (Post 481523)
Bunti Dada here is my script (with resources)....

Set the Uncompressed Size for each archive marked in red as below:

Code:

;Archive1= Archive Type | Source | Output | Disk | Uncompressed Size in MB
;----------------- Maximum 8 Archive -----------------------------;
Archive1=Freearc|{src}\data1.cpi|{app}|1|525


devil777 02-07-2019 01:32

About image
 
All the way thanks Bunti_04u Dada for your previous hhelps.. but Dada I have a question...
I see that in your edited WPI setup creator you use 800*480 jpg pictures...
But I wonder If I use 1920*1080p pictures during compile without changing any value in WPI.iss script will that be a problem or is that okay?

devil777 06-07-2019 09:46

Can you provide help regarding Component:Language
 
Greetings Bunti Dada..
Dada setup.exe file doesn't select all the languages.
Is there is something to do in the script.I've enabled everything in component and language option but when I try to select all the language pack in setup.exe it only selects just any one language pack (also all the language packs were present).
Now I seek your help... but I'm not sure about the optional component option cause I haven't tried it yet

Plus Dada about picture.. I had tried 1280*720p pictures... in that case setup do gain some MB but the size in desktop remains the same.. also pictures In setup window do gets better. But I wonder If it would be a problem in future in case of low resolution monitor

exorc 08-07-2019 06:57

How to eliminate the Lockscreen?

thx.

bunti_o4u 08-07-2019 10:25

Quote:

Originally Posted by devil777 (Post 481665)
Can you provide help regarding Component:Language

Find below lines (replace # with 1 to 8)
Code:

CheckBoxSetEvent(Lang#Chk,@Lang#ChkClick);
Either delete these lines or put "//" at the start of line...

bunti_o4u 08-07-2019 10:28

Quote:

Originally Posted by exorc (Post 481695)
How to eliminate the Lockscreen?

thx.

Find below code and replace "True" to "False"
Code:

  AutorunLock:=LockCreate(AutorunForm,ExpandConstant('{tmp}\Lockscreen.jpg'),True);

bunti_o4u 09-07-2019 13:29

Quote:

Originally Posted by exorc (Post 481714)
Sorry but not found.


if you change True for False the installer does not start.

In the first line you are saying you didn't find but in the next line you are saying installer doesn't start. Bro I don't understand why did you write two contradict statements.

And matter of fact both of your statements are wrong. Code is there in the script... (line number: old script 6637 - update script - 6644) and it is working fine.

Hope you know how to use a little function called "find" which can be run by pressing Ctrl+F....:p:p

Fsi - RePack 10-07-2019 02:45

Langauage Files & HD Pack name Change Example Name : Fsi-Data_EN.bin - Fsi-Data_HDPack.bin

devil777 15-07-2019 00:07

Yes it can be....
 
Quote:

Originally Posted by Fsi - RePack (Post 481720)
Langauage Files & HD Pack name Change Example Name : Fsi-Data_EN.bin - Fsi-Data_HDPack.bin

Yes man it can be...

devil777 15-07-2019 00:10

Again help needed
 
Bunti Dada.. greetings.. Bunti_o4U Dada in case of selecting language files they do not come pre-selected..or already selected. when the installer is started.. I Want the help that I Want the language packs to be pre-selected.. and if the users wants he can deselect the Lang.. packs..
Wish you a happy day dada..

bunti_o4u 15-07-2019 12:28

Quote:

Originally Posted by devil777 (Post 481804)
Bunti Dada.. greetings.. Bunti_o4U Dada in case of selecting language files they do not come pre-selected..or already selected. when the installer is started.. I Want the help that I Want the language packs to be pre-selected.. and if the users wants he can deselect the Lang.. packs..
Wish you a happy day dada..

Find the below lines and delete them (# is language number):

Code:

  if WizardForm.CurPageID = wpWelcome then
    CheckBoxSetChecked(Lang#Chk, False);


PsYcHo_RaGE 15-07-2019 22:59

bunti dada, lmao

wow, he gave you a good name :D


All times are GMT -7. The time now is 19:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com