Biggest problem is that the user profile data (files, registry) are not removed for all except the removing user. It tends to break expectations of clean removals.
-----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: Thursday, July 16, 2009 3:00 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Install approach and location This can be made to happen automatically if the files are keypath files, or the keypath for the file's component is a HKCU entry - use of one of the MSI advertised entries (shortcut, COM activation, file association) will cause Windows to do that MsiProvideComponent on the user's behalf. I think there was an Office version that installed per-user items this way - Rob may know something about it. I get the impression this isn't a popular approach these days, don't know why, maybe one of the MS WiX guys knows. Phil Wilson -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Thursday, July 16, 2009 12:12 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Install approach and location You can ensure that the files are present in the My Documents folder by using the MsiProvideComponent() API from within your program (instead of copying them yourself) which will cause MSI to add those files from the MSI to that user's profile when they are discovered to be "missing" (by "repairing"). This will, of course, require that you make sure the MSI is left registered in an accessible (by the OS) location to be able to copy the files out of the MSI for the running user. You should place the files you put in the My Documents folder in their own feature so that the above API doesn't spend its time checking/copying more than just those files. This usage is supported in the locked-down systems I have tried it on. -----Original Message----- From: En-jay EAH. Hsu [mailto:enj...@windward.net] Sent: Thursday, July 16, 2009 9:08 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Install approach and location Hi. We have a number of sample files we install for the user to use in Word & Excel. So we want these files to be placed in the user's My Documents folder. However, during the install many times the user installing is not the user running the program. What we have done is install the sample files in the Program Files folder for our application, then copy them over to My Documents the first time someone uses the program. 1. Is this still the recommended approach for this issue? 2. Windows when locked down does not like us reading files from our Program Files folder - where should we install these too? Application Data? Thanks, En-jay ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users