SyMenu Forum

SyMenu

 

HomeConfigure portable programs

How to configure programs in SyMenu

MiniTool Partition Wizard Free (Inno with x86/x64) Messages in this topic - RSS

VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148


02/09/2016
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148
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
link
Gianluca
Gianluca
Administrator
Posts: 957


02/09/2016
Gianluca
Gianluca
Administrator
Posts: 957
Wow... your script is a clear demonstration that the wildcards in the scripting engine are absolutely necessary.
And thinking about the update process we are lucky that at least the RenFile and CopyFile work in overwrite mode... otherwise you need to delete any previous file too.

I have to deeply think to a smart resolution for this occurrences.
link
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148


02/09/2016
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148
¡Don't worry at all!
It's true that isn't very smart but I can prepare the script in the notepad with copy and paste the folder content.
For me the very important thing is the powerful of SyMenu. :-) :-) :-)
link
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148


26/09/2016
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148
Updated:
With SyMenu 5.05.6111 [2016.09.24] : SPS: new function on script after install: CopyDir.
You can change:
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
By:
CopyDir x64 v_x86\x64
Note for Gian: I didn't make the change in the published SPS because it didn't work in the "Test SPS Online" of SPS Builder v.1.16 even it works fine in the user installation with SyMenu 5.05.6111 [2016.09.24]. The new Copydir command is not documented in the SPS Builder v.1.16 help either.
edited by VVV_Easy_Symenu on 26/09/2016
link
Gianluca
Gianluca
Administrator
Posts: 957


26/09/2016
Gianluca
Gianluca
Administrator
Posts: 957
You are right. CopyFile will be released with the SPS Builder 1.17. When I introduce a new feature I usually grant SyMenu some days to spread among the users and then I release the SPS Builder. Otherwise they risk to find an SPS with a CopyFile instruction with an old SyMenu that can't understand what this command is for.

CopyDir can be a nice addition. I'll think about it. Thanks.
edited by Gianluca on 26/09/2016
link
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148


27/09/2016
VVV_Easy_Symenu
VVV_Easy_Symenu
Posts: 148
Gianluca wrote:
You are right. CopyFile will be released with the SPS Builder 1.17. When I introduce a new feature I usually grant SyMenu some days to spread among the users and then I release the SPS Builder. Otherwise they risk to find an SPS with a CopyFile instruction with an old SyMenu that can't understand what this command is for.

CopyDir can be a nice addition. I'll think about it. Thanks.
edited by Gianluca on 26/09/2016

Really I spoke about CopyDir that works fine in SyMenu 5.05.6111 [2016.09.24]. CopyFile works fine since the Script after Install feature.
link
Gianluca
Gianluca
Administrator
Posts: 957


27/09/2016
Gianluca
Gianluca
Administrator
Posts: 957
Guys... now you understand what is my level of caos in this period smile
Yes I confirm the SPS Builder 1.17 will introduce the CopyDir feature. SyMenu 5.05 is already compatible with CopyDir instead.
CopyFile is here from the start.
Sorry!
link



UGMFree.NET ©2002-2020
By Gianluca Negrelli - Contact me