PDA

View Full Version : Working directory in shortcut?



NewsArchive
03-14-2007, 04:58 AM
Hello,

I have a pretty simple install where I have a single .EXE that will be
installed in the default program files folder (or users choice). I need to
set the working directory in the shortcut to point to a user selected folder
which may be on the local computer or on a mapped network drive. I can't
seem to find a function in SB6 that will let me do this little bit of user
interface. Is there one, or do I have to write a DLL?

Thanks,

Tony Tetley
Professional Data Services, Inc.

NewsArchive
03-14-2007, 04:59 AM
Tony,

Absolutely no problem.

1. Create a new variable, e.g. %WORKINGDIR%

2. Add another "Select Install Folder" dialog and use %WORKINGDIR%
in the "Store Folder in Variable" item (Advanced Tab)

3. Add your Shortcut and in the "Working Directory field" enter or
select (Ctrl+mouse-right) the above %WORKINGDIR% variable.

That's it!

Does this help?

Thanks,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-14-2007, 07:06 AM
Fantastic, thank you.

Tony