It's because the folder is read-only unless you have full admin rights. You can have the installer make it writable like this: <Directory Id="examples" Name="examples"> <Component Id="examples_permissions" Guid="GUID_GOES_HERE"> <CreateFolder> <Permission GenericAll="yes" Read="yes" ReadAttributes="yes" CreateChild="yes" Delete="yes" DeleteChild="yes" WriteAttributes="yes" User="Everyone" /> </CreateFolder> </Component> </Directory>
Rob On 04/06/2010 15:33, Kshama Bafna (Persistent Systems Private Ltd) wrote: > Hi, > > I have created an MSI using WIX and the installation is done correctly by the > MSI. When I install my application to D:\MyApp, the application works fine > and as expected it writes a few files in the same location. However, when I > install the application at C:\Program Files (x86)\MyApp location, the > application is unable to write the files in the installed location and it > throws an exception 'Access Denied'. I do not get this exception when I run > the application as 'Run as Administrator'. > > Please let me know how can I get rid of this exception. Are there any > permissions which could be set in the WIX file for the folder? > > Thanks in advance, > Kshama > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users