Hello,
I am trying to come up with an installer that can write files in the
C:\Documents and Settings\Marcel\ .m2 directory. Currently I have the following
which will put it inside C:\Documents and Settings\Marcel\Application Data\.m2
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='AppDataFolder'>
<Directory Id='m2' Name='.m2'>
<Component Id='settings' Guid='5a0f46bb-6210-4152-834b-0489b9cb917d'>
<File Id='settingsxml' Name='settings.xml' DiskId='1'
Source='settings.xml' Vital='yes'>
</File>
</Component>
</Directory>
</Directory>
</Directory>
Can anyone give me a pointer how to do this?
The reason I have to put my files at this specific location is that I am
writing an installer for an existing opensource tool (maven) which expects
certain files in this exact location.
Regards,
Marcel
----- Original Message -----
From: Mailinglist
To: Marcel Schutte
Sent: Tuesday, September 11, 2007 9:44 AM
Subject: RE: [OT] [WiX-users] user home predefined name?
Hi Marcel,
>In the tutorial that I've been reading, it is suggested that you should
always let the installer write files, because that way it 'knows' about them
and can remove them on uninstall.
Correct for this, but on uninstall, does this delete the files from all
user-directorys or just from that one of the user who does uninstall?
>So yes, I could have my files copied there on first run, but I would prefer
letting the installer do it. Besides that, the list of predefined names does
contain the users desktop, my documents, >appdatafolder etc. It only lacks a
way to refer to their parent, C:\Documents and Settings\<myaccount>\.
Well, appdatafolder is the correct place for your application data, why do
you want to go anywhere else?
>Is there a way to point to this folder from a <directory> tag?
Sure, you could manually add a "..\" to the path of the directory.
Bye Oliver
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users