Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Folder Destinations


1 reply to this topic

benlbit

benlbit
  • Full Members
  • 2 posts

Posted 23 November 2006 - 04:53

Hey All,

I've got a question I'm hoping someone can answer.

I've inherited the packaging of an application, its part of Cygwin.

One folder is contains is as a set of templates which need to be located into the following folder for each user: C:\Cygwin\Home\<UserName>\

The folder is stored in the MSI as C:\Cygwin\Home\UserName

There's a custom action in the Execute Immediate sequence which sets the directory (UserName) to INSTALLDIR\Home\[%USERNAME] which works perfectly for the first user.

How can I make it so the MSI re-install the components located in the UserName directory each time a new user runs the advertised shortcut for the first time?

I'm finding because the folder installs the for the first user, subsequent users don't get it.

Cheers,
Ben

Edited by benlbit, 23 November 2006 - 04:56.


luke_s

luke_s
  • Full Members
  • 532 posts

Posted 05 December 2006 - 07:25

You will need to store the value of the first users folder somewhere. Then when running in advertised mode, create a custom action to grab this value, and set the path to what you want.

If you use %USERNAME, it will always grab the installing users username.