I want my setup to install a file to every user profile in Windows. Right now I can only specify [UserProfile]\Application Data\Microsoft\... but I want the file to be copied to every user profile, not only the logged user. Please tell me how to do this.
Thanks in advance.
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.
install file under every user profile
Started by
vaqueros
, Sep 14 2006 04:51
7 replies to this topic
Posted 14 September 2006 - 05:01
As far i understand MSI allows a file to be installed only at one location.
May be you can install the file to AllUsers profile and then thru a CA copy it to where you want.
May be you can install the file to AllUsers profile and then thru a CA copy it to where you want.
ankur tyagi
Posted 14 September 2006 - 05:32
The most reliable way to do this is to install the file to a per machine path such as "Program Files\Application\UserData" and then have the application EXE copy the data down to the user profile on launch.
It is also possible to do this by setting a user profile install path and then a registry key path, but this is not recommended.
It is also possible to do this by setting a user profile install path and then a registry key path, but this is not recommended.
Regards
-Stein Åsmul
-Stein Åsmul
Posted 14 September 2006 - 20:41
The thing is that I'm not really installing an application, just a few files. I want to install new user dictionaries for each user profile on the machine. One suggestion was to use DuplicateFiles but I don't know how to retreive the path for each user profile.
Thanks.
Thanks.
Posted 14 September 2006 - 21:00
Try adding an ALLUSERS with a value of 1 in the property manager. You will get a warning on compile, but this works for me.
Posted 15 September 2006 - 14:51
Adding ALLUSERS=1 to Property Manager and running the msi with the ALLUSERS=1 line did not work. Where you able to do it? What did you have for the file's Destination path?
Thanks.
Thanks.
Posted 18 September 2006 - 14:41
vaqueros
Actually, the only file that is installed for all users is the shortcut on the desktop. Without the ALLUSERS = 1, the shortcut only shows up for the administrator.
Robert
Actually, the only file that is installed for all users is the shortcut on the desktop. Without the ALLUSERS = 1, the shortcut only shows up for the administrator.
Robert