VVV_Easy_Symenu Posts: 159
02/09/2016
|
Hello, I tell my experience making the SPS MiniTool Partition Wizard Free if it could helps someone. The package is a Inno setup that install the portable version x86 or x64 according to the environment. So in the package the x86 version files have ",1" in the name and the x64 version files have ",2" (you can test the version reading the manifest with HexBrowserNet SPS program) We need the SyMenu 5.04.6066 version because we do two installation steps (see down the SPS file related lines): 1) Full decompression with "Inno setup flag -a" 2) Put every file in its version folder (I have created v_x86 and v_x64) with the functionality name (without ",1" or ",2") 3) Make a copy if there are common version files (for instance, the help file pw.chm) (Note: In this case, if you want run x86 version in x64 enviroment you need x64 dll folder too)
When you install the SPS you get the two versions, so if you want automatic launching you can use the Jess AutoHotkey script "SyMenuRun32or64.exe" as related in http://www.ugmfree.it/Forum/messages.aspx?TopicID=345. Note for ZeDingo: Your CMD script work fine in windows environment but it crashed launched as Symenu Item.
I hope this could be useful for somebody.
[PackerFormat]InnoSetup[PackerFormat] [InstallationArguments]-a[/InstallationArguments]
...
[ScriptAfterInstall] # For the x86 SPS version MakeDir v_x86 RenDir x86 v_x86\x86 # If you want run x86 version in x64 enviroment you need x64 dir too MakeDir v_x86\x64 CopyFile x64\pwdrvio.sys v_x86\x64\pwdrvio.sys CopyFile x64\pwdspio.sys v_x86\x64\pwdspio.sys CopyFile x64\pwNative.exe v_x86\x64\pwNative.exe MakeDir v_x86\imageformats RenFile imageformats\qgif4,1.dll v_x86\imageformats\qgif4.dll RenFile idriver,1.dll v_x86\idriver.dll RenFile ikernel,1.dll v_x86\ikernel.dll RenFile loader,1.exe v_x86\loader.exe RenFile loader.exe,1.manifest v_x86\loader.exe.manifest RenFile Microsoft.VC90.CRT,1.manifest v_x86\Microsoft.VC90.CRT.manifest RenFile msvcm90,1.dll v_x86\msvcm90.dll RenFile msvcp90,1.dll v_x86\msvcp90.dll RenFile msvcr90,1.dll v_x86\msvcr90.dll RenFile partitionwizard,1.exe v_x86\PartitionWizard.exe RenFile PartitionWizard.exe,1.manifest v_x86\PartitionWizard.exe.manifest RenFile QtCore4,1.dll v_x86\QtCore4.dll RenFile QtGui4,1.dll v_x86\QtGui4.dll RenFile QtNetwork4,1.dll v_x86\QtNetwork4.dll RenFile QtWebKit4,1.dll v_x86\QtWebKit4.dll CopyFile pw.chm v_x86\pw.chm # For the x64 SPS version MakeDir v_x64 RenDir x64 v_x64\x64 RenDir imageformats v_x64\imageformats RenFile v_x64\imageformats\qgif4,2.dll v_x64\imageformats\qgif4.dll RenFile idriver,2.dll v_x64\idriver.dll RenFile ikernel,2.dll v_x64\ikernel.dll RenFile loader,2.exe v_x64\loader.exe RenFile loader.exe,2.manifest v_x64\loader.exe.manifest RenFile Microsoft.VC90.CRT,2.manifest v_x64\Microsoft.VC90.CRT.manifest RenFile msvcm90,2.dll v_x64\msvcm90.dll RenFile msvcp90,2.dll v_x64\msvcp90.dll RenFile msvcr90,2.dll v_x64\msvcr90.dll RenFile PartitionWizard,2.exe v_x64\PartitionWizard.exe RenFile PartitionWizard.exe,2.manifest v_x64\PartitionWizard.exe.manifest RenFile QtCore4,2.dll v_x64\QtCore4.dll RenFile QtGui4,2.dll v_x64\QtGui4.dll RenFile QtNetwork4,2.dll v_x64\QtNetwork4.dll RenFile QtWebKit4,2.dll v_x64\QtWebKit4.dll RenFile pw.chm v_x64\pw.chm [/ScriptAfterInstall] edited by VVV_Easy_Symenu on 02/09/2016
|