It was my mistake its actually TestSettings01.esf and others too. I was able to 
figure this out with the help of Orca.

Thanks for your help.

Now, In the New Year I will start implementing Wix to my complex Installer.

Is there a easy way to add files to components? I have like at least 100-200 
Assemblies, few Services and add another 50-10 files for dependency files and 
on top of this Install .NET/SQL.


Thanks,


Arun Perregattur


-----Original Message-----
From: Ian Elliott (Excell Data Corporation) [mailto:a-iae...@microsoft.com]
Sent: Wednesday, December 31, 2008 6:04 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

I would make sure that a RemoveFile table actually exists in your msi and that 
the data contained therein is accurate. (Use Orca to view.)

Make sure the files you are trying to remove are actually in the directory you 
specified in the xml and not some other directory.


-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Wednesday, December 31, 2008 2:57 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

I don't see RemoveFile been called to remove those TestSettings files.

MSI (s) (B4:E8) [17:49:17:750]: Executing op: 
ActionStart(Name=RemoveFiles,Description=Removing files,Template=File: [1], 
Directory: [9])
Action 17:49:17: RemoveFiles. Removing files
MSI (s) (B4:E8) [17:49:17:765]: Executing op: 
ProgressTotal(Total=2,Type=1,ByteEquivalent=175000)
MSI (s) (B4:E8) [17:49:17:765]: Executing op: SetTargetFolder(Folder=D:\Program 
Files\TestApp 1.0\)
MSI (s) (B4:E8) [17:49:17:765]: Executing op: 
FileRemove(,FileName=TestApp10.exe,,ComponentId={AB5BD008-5DB3-4CF9-BDC9-2D66362CAF93})
RemoveFiles: File: TestApp10.exe, Directory: D:\Program Files\TestApp 1.0\
MSI (s) (B4:E8) [17:49:17:765]: Verifying accessibility of file: TestApp10.exe
MSI (s) (B4:E8) [17:49:17:812]: Executing op: SetTargetFolder(Folder=D:\Program 
Files\TestApp 1.0\Tools\)
MSI (s) (B4:E8) [17:49:17:812]: Executing op: 
FileRemove(,FileName=TestUtils.exe,,ComponentId={AABADBD5-4D5D-4B61-AEE5-180A8678AC1A})
RemoveFiles: File: TestUtils.exe, Directory: D:\Program Files\TestApp 1.0\Tools\
MSI (s) (B4:E8) [17:49:17:812]: Verifying accessibility of file: TestUtils.exe
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
ActionStart(Name=InstallFiles,Description=Copying new files,Template=File: [1], 
 Directory: [9],  Size: [6])
Action 17:49:17: InstallFiles. Copying new files
MSI (s) (B4:E8) [17:49:17:875]: Executing op: InstallProtectedFiles(AllowUI=1)
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
ActionStart(Name=PublishProduct,Description=Publishing product information,)
Action 17:49:17: PublishProduct. Publishing product information
MSI (s) (B4:E8) [17:49:17:875]: Executing op: CleanupConfigData()
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
RegisterPatchOrder(Continue=0,SequenceType=0,Remove=1)
MSI (s) (B4:E8) [17:49:17:875]: Note: 1: 1402 2: 
UNKNOWN\Installer\Products\1690896185B3A7C45BB62D328A685B39\Patches 3: 2
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
RegisterPatchOrder(Continue=0,SequenceType=1,Remove=1)
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
CleanupConfigData(RemovingProduct=1)
MSI (s) (B4:E8) [17:49:17:875]: Note: 1: 1402 2: 
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-2513347637-2865178370-3866956240-1003\Products\1690896185B3A7C45BB62D328A685B39\Patches
 3: 2
MSI (s) (B4:E8) [17:49:17:875]: Executing op: 
End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=398000)
MSI (s) (B4:E8) [17:49:17:890]: User policy value 'DisableRollback' is 0
MSI (s) (B4:E8) [17:49:17:890]: Machine policy value 'DisableRollback' is 0
Action 17:49:17: RollbackCleanup. Removing backup files
RollbackCleanup: File: D:\Config.Msi\af8feed.rbf
RollbackCleanup: File: D:\Config.Msi\af8feee.rbf
MSI (s) (B4:E8) [17:49:17:937]: No System Restore sequence number for this 
installation.
MSI (s) (B4:E8) [17:49:17:937]: Unlocking Server
MSI (s) (B4:E8) [17:49:17:984]: PROPERTY CHANGE: Deleting UpdateStarted 
property. Its current value is '1'.
Action ended 17:49:17: InstallFinalize. Return value 1.

Arun Perregattur


-----Original Message-----
From: Ian Elliott (Excell Data Corporation) [mailto:a-iae...@microsoft.com]
Sent: Wednesday, December 31, 2008 5:43 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

That's not really an error. It's just pulling test from the Error table which 
ultimately reads:
Product Version: 1.0. Product Language: 1033. Reconfiguration success or error 
status: 0.

Try searching the log file for RemoveFile and see what text shows up. Make sure 
the log is verbose.

-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Wednesday, December 31, 2008 2:34 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

This is the error I get.

MSI (c) (0C:14) [17:25:47:203]: Note: 1: 1728
MSI (c) (0C:14) [17:25:47:203]: Note: 1: 2205 2:  3: Error
MSI (c) (0C:14) [17:25:47:203]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` 
FROM `Error` WHERE `Error` = 1728
MSI (c) (0C:14) [17:25:47:203]: Note: 1: 2205 2:  3: Error
MSI (c) (0C:14) [17:25:47:203]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` 
FROM `Error` WHERE `Error` = 1709
MSI (c) (0C:14) [17:25:47:203]: Product: TestApp 1.0 -- Configuration completed 
successfully.

MSI (c) (0C:14) [17:25:47:203]: Windows Installer reconfigured the product. 
Product Name: TestApp 1.0. Product Version: 1.0. Product Language: 1033. 
Reconfiguration success or error status: 0.

MSI (c) (0C:14) [17:25:47:203]: Grabbed execution mutex.
MSI (c) (0C:14) [17:25:47:203]: Cleaning up uninstalled install packages, if 
any exist
MSI (c) (0C:14) [17:25:47:203]: MainEngineThread is returning 0
=== Verbose logging stopped: 12/31/2008  17:25:47 ===








Here goes the code...
        <Product Id="*"
                         UpgradeCode="25EE33E1-E558-4040-BF9D-0DB66C800C0A"
                         Version ="1.0"
                         Language="1033"
                         Name="TestApp 1.0"
                         Manufacturer="Test Application">
                <Package InstallerVersion="300" Compressed="yes"/>
                <Media Id="1" Cabinet="TestApp.cab" EmbedCab="yes"/>
                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder" >
                                <Directory Id="APPLICATIONROOTDIRECTORY" 
Name="TestApp 1.0">
                                        <Directory 
Id="APPLICATIONTOOLSDIRECTORY" Name="Tools"/>
                                </Directory>
                        </Directory>
                </Directory>


                <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
                        <Component Id="TestApp10.exe" 
Guid="AB5BD008-5DB3-4cf9-BDC9-2D66362CAF93">
                                <File Id="TestApp10.exe" Source="TestApp10.exe" 
KeyPath="yes" Checksum="yes"/>
                                <RemoveFile Id ="settingsFile" On="uninstall" 
Name="TestSettings.esx" />
                                <RemoveFile Id ="settingsFile1" On="uninstall" 
Name="TestSettings.esf" />
                                <RemoveFile Id ="settingsFile2" On="uninstall" 
Name="TestSettings.bak" />
                        </Component>
                </DirectoryRef>
                <DirectoryRef Id="APPLICATIONTOOLSDIRECTORY">
                        <Component Id="TestUtils.exe" 
Guid="AABADBD5-4D5D-4b61-AEE5-180A8678AC1A">
                                <File Id="TestUtils.exe" Source="TestUtils.exe" 
KeyPath="yes"/>
                        </Component>
                </DirectoryRef>
                <Feature Id="MainFeature" Title="TestApp 1.0" Level="1">
                        <ComponentRef Id="TestApp10.exe"/>
                        <ComponentRef Id="TestUtils.exe"/>
                </Feature>
                <UI>
                        <UIRef Id="WixUI_Minimal"/>
                        <Publish Dialog="ExitDialog"
                                         Control="Finish"
                                         Event="DoAction"
                                         
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT 
Installed</Publish>
                </UI>
                <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" 
Value="Launch TestApp 1.0"/>
                <Property Id="WixShellExecTarget" Value="[#TestApp10.exe]" />
                <CustomAction Id="LaunchApplication"
                                          BinaryKey="WixCA"
                                          DllEntry="WixShellExec"
                                          Impersonate="yes"/>

        </Product>



Thanks,


Arun Perregattur


-----Original Message-----
From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com]
Sent: Wednesday, December 31, 2008 5:19 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

Thanks I got the sub folders working, now let me try the remove file.

Thanks,

Arun Perregattur


-----Original Message-----
From: Ian Elliott (Excell Data Corporation) [mailto:a-iae...@microsoft.com]
Sent: Wednesday, December 31, 2008 5:10 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix Sub Folders Install

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:aperregatt...@napcosecurity.com]
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:a-iae...@microsoft.com]
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:aperregatt...@napcosecurity.com]
Sent: Wednesday, December 31, 2008 1:05 PM
To: wix-users (wix-users@lists.sourceforge.net)
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="TestApp10exe" 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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to