PDA

View Full Version : Custom install folder


Érico
10-01-2004, 02:47 PM
Hi,

I need the setup to install in a custom folder but that folder can't be changed by the user. Ex: C:\program name. How do I do that?

GalacTek
10-01-2004, 03:44 PM
Can't you set the %AppFolder% variable at the beginning and not display the Select Install Folder screen. That is what I do. We do this for our demos. I hard code it for c:\ecldemo.

For my other installs, I only display the Select Drive Screen then assign %AppFolder% to the selected drive that was selected with the folder name.

In SF6 on each file I assign the destination %SelectedDrive%\ECLDEMO.

I have not updated my scripts to SF7 yet.

Érico
10-01-2004, 03:50 PM
Thats what im trying to do but the setting of the %AppFolder% variable did not work. Can you post the code?

GalacTek
10-01-2004, 04:01 PM
SF7 is new to me to, Under Project, Session Variables, did you put the path in the %AppFolder%?

JXBURNS
10-03-2004, 08:37 AM
Are you referring to files you are trying to install to a specific folder? If so, why not just hard-code the destination folder in the file properties? Or use %AppFolder% in file properties if you want to be more flexible.

%AppFolder% is defined in session variables which you can change to either use in-built variables, hard-code or a combination of both.

John