If you want Tools to be underneath "TestApp 1.0" then do the following:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="TestApp 1.0"/>
Component goes here
<Directory Id=" APPLICATIONTOOLSDIRECTORY " Name="Tools"/>
Component goes here
</Directory>
</Directory>
</Directory>
</Directory>
You should examine a verbose log file to look for clues as to why the
RemoveFiles doesn't work.
-----Original Message-----
From: Arun Perregatturv [mailto:[email protected]]
Sent: Wednesday, December 31, 2008 2:02 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install
Is this the way to create Sub Folders?
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY"
Name="TestApp 1.0"/>
</Directory>
<Directory Id="APPLICATIONROOTDIRECTORY" >
<Directory Id="APPLICATIONTOOLSDIRECTORY"
Name="Tools"/>
</Directory>
</Directory>
I am unsure of how to create Sub Folders.
Yes, File names are correct I don't know why it's unable to Removefile.
Thanks,
Arun Perregattur
-----Original Message-----
From: Ian Elliott (Excell Data Corporation) [mailto:[email protected]]
Sent: Wednesday, December 31, 2008 4:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install
I don't see a "Tools" subfolder under the "Test App 1.0" folder you created so
nothing will be installed there.
Not sure why the RemoveFiles doesn't work. Did you get the spelling correct on
the file names?
-----Original Message-----
From: Arun Perregatturv [mailto:[email protected]]
Sent: Wednesday, December 31, 2008 1:05 PM
To: wix-users ([email protected])
Subject: [WiX-users] Wix Sub Folders Install
I just started working on Wix and trying out few things before I can start
implementing.
Our existing Installer(Installshield) has a nice UI but there are some
limitations of how things are done. Everthing has to be on the Build PC and
need to know all the files to compile and create a Installer. But in case of
Wix its different and I like this, it can be added to existing .NET projects
and developers can add their files to it(meaning references and where to
install).
Now, coming back to real questions: I have this code
All I want to do is Copy some files to C:\Program Files\Test App and some to
C:\Program Files\Test App\Tools and so on.
Below code works and copies everything to C:\Program Files\Test App. Please let
me know what I am doing wrong here.
The Blue colored one is what I need to install under Tools folder.
Also the RemoveFile doesn't work. I have those files created by my application
and need to remove them on uninstall from the INSTALLLOCATION.
<Directory Id="ProgramFilesFolder" Name ="PFiles">
<Directory Id="INSTALLLOCATION" Name="Test App 1.0" >
<Component Id="MainProductComponent"
Guid="2a895473-a95a-4553-bf45-883ce1294b98" >
<!-- TODO: Insert files, registry keys, and
other resources here. -->
<File Id="CardAccess30exe" Name="TestApp10.exe"
Source="TestApp10.exe" Vital="yes" >
<Shortcut Id="startmenuca10"
Directory="ProgramMenuDir"
Name="Launch Test Application
1.0"
WorkingDirectory="INSTALLLOCATION" />
<Shortcut Id="desktopca30"
Directory="DesktopFolder"
Name="Launch Test Application
1.0"
WorkingDirectory="INSTALLLOCATION"
IconIndex="0"/>
</File>
<RemoveFile Id ="settingsFile" On="uninstall"
Name="TestSettings.esx" Directory="INSTALLLOCATION" />
<RemoveFile Id ="settingsFile1" On="uninstall"
Name=" TestSettings.esf" Directory="INSTALLLOCATION"/>
<RemoveFile Id ="settingsFile2" On="uninstall"
Name=" TestSettings.bak" Directory="INSTALLLOCATION"/>
</Component>
<Component Id="MainToolsComponent"
Guid="2B170AC9-DC34-4f76-BE1E-9AC5BF30AED5">
<File Id="TestDBUtilsexe"
Name="TestDBUtils.exe" Source="TestDBUtils.exe" Vital="yes" >
<Shortcut Id="startmenuTestDBUtils"
Directory="ProgramMenuDir"
Name="Launch Test Utilities"
WorkingDirectory="INSTALLLOCATION"
IconIndex="0"/>
<Shortcut Id="desktopTestDBUtils"
Directory="DesktopFolder"
Name="Launch Test Utilities"
WorkingDirectory="INSTALLLOCATION"
IconIndex="0"/>
</File>
</Component>
</Directory>
</Directory>
Thanks,
Arun Perregattur
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users