Archive: Help setting install directory.


Help setting install directory.
I couldnt see anything in the manual on how to do this or when searching the forums (Though I may have just missed it) so I thought I'd ask here.

In the installer I'm creating for my program, the only thing I want the user to be able to set is the drive the program is installed on. Everything else, the folder paths, etc, all need to be kept the same.

How do I do this?

Thanks

- Galdric


You'll have to create a custom page with InstallOptions with a list box and fill it with GetDrives (in documentation).

You can use this to set the new $INSTDIR:
StrCpy $R0 $INSTDIR
StrCpy $R0 $R0 "" 1
StrCpy $INSTDIR `$DRIVE$R0`

Stu


Thanks!