View Full Version : Package Selection
mkruckow
10-11-2004, 04:12 AM
Hi guys,
i am pretty new to SUF7. thats why my question might sound stupid to some of you but i would be happy about any helpful comments.
i am trying to set up an installer with three packages. i located installers for other programs inside these packages which shall be run if the respective package is selected. my problem is how to verify whether the package is checked in LUA.
i know this sounds confusing but i hope some of you will be able to help me.
thanx in advance
JXBURNS
10-11-2004, 06:19 AM
The procedure is to add the packages via the Packages option on the left.
Assign the package to the relevant installation file (you can assign more than one package to a file) in File Properties.
Add a Packages screen to your project, move it to the correct location in the installation flow process and made sure the packages are selected for available installation by moving them to the right hand box.
The system will automatically install any files connected to a specific package as long as that package has been selected in the package screen. You do not have to concern yourself with checking whether the user has ticked the box or not.
John
mkruckow
10-12-2004, 01:46 AM
Hi John,
thank you for your quick reply. I have already tried it the way you explained but all SUF did was basically copy the installers for the other programs to the application folder.
Example:
I located an installer for program "x" inside the package "test". When the user checks the box for the installation of this package, i want my installer to automatically trigger the installation of the installer for program "x" rather than copying the file to the application folder.
To me, being a newbie to SUF as well as to LUA, it seems logical to add a line of code saying:
if (state of checkbox within package) then
file.run (installer for program "x");
end
What can I do???
Marcus
JXBURNS
10-12-2004, 02:57 AM
I missed the point that you want to run the program from within SUF7. So in that case, do not use a package. Instead use a check box screen. Set up how you want and assign variables if you do not want to use the default.
On the file screen, for each executable, set it to be written to a temporary directory regardless or use the Script Condition at the bottom and enter the check box variable. If the result is true it will be installed.
Then on either post install (if you want to run within SUF7) or On Shutdown afterwards (although not sure the wait until finish works at that point) do a File.Run of the program and then a File.Delete afterwards (if you don't want it left behind) if the check box variable is set to true.
You could probably still use a package screen to install and check for the user having selected that package and then do the File.Run etc. afterwards. I'm not sure if the Package ID is a variable you can compare against though.
John
mkruckow
10-13-2004, 03:01 AM
Thanx for your help. the checkbox solution works just fine.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.