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

Reply via email to