View Full Version : Installation Folder Question
juraitwaluzka
08-16-2005, 04:49 PM
I was wondering if the following is possible. We have an existing product that is an add on to our main product. Now, a new version of our main product is out so I would like to set up the add on installer so that it looks in the user's registry to see if the newest version exists and if so, install there by default. But if user only has the older newer version, then I want to install to their older version by default. Basically I want the user to see the proper "Install To" folder based on which version of our main product is installed on their system.
The main program (both the previous and current versions) writes a registry entry telling of its existence, and I know how to create registry variables in Setup Factory. The part I can't figure out is how to use one variable based on it's existence or the 2nd variable if the 1st doesn't exist.
BTW, we are using Setup Factory 5. Can this be done in v5? If not, what about in the newest version?
bnkrazy
08-16-2005, 06:35 PM
Not sure about SF5, but with SF7 it is very simple to accomplish. I won't bother with actual code since you don't have SF7, but I can snip it out of my project if you want as I do a similar check at the beginning of my install routine.
I have something similar to the following (pseudoscript):
if RegKey1 exists
read the key/value and store the install dir in the %AppDir% variable
GoTo label Exit
end if
if RegKey2 exists
read the key/value and store the install dir in the %AppDir% variable
GoTo label Exit
end if
If we get here then it didn't find either reg key...so take care of that here...
label "Exit"
-- this is the end of the script
SF5 would use actions instead of a script. As long as it has an IF construct (SF6 does), labels and GoTos, you should be able to do the same type of thing.
juraitwaluzka
08-17-2005, 06:58 PM
Thanks for the reply. Unfortunately, I do not think that SF5 supports the IF construct, or if it does I haven't figured out how. Searching the help for Actions doesn't come up with anything.
Anyone know for sure that this is not possible in SF5?
Conditional statements were quite limited in version 5.0. If there is a solution then it will be in the "Conditions" tab for that screen.
I am sure that you will have more success with version 7.0.
Adam Kapilik
cinek
11-23-2005, 11:05 AM
Hey
Can you explain in detail how's it working?
I am trying to install a mod for a game and want SF to find the exe file of the game on any driver (not C only). Then I want SF to set up the folder where the exe file is in.
I already fogured out how to make a shortcut with the command extension to launch the mod.
Can someone explain it in detail plz.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.