Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Because properties and directory paths share the same namespace, and if you don't want/need to allow any arbitrary path to be used, you can simplify that code even further: Directory Id=TARGETDIR Name=SourceDir Directory Id=WindowsVolume Directory Id=TopDir Name=TopDir Directory Id=SecondDir Name=SecondDir / /Directory /Directory /Directory If you really need the ability to set the installation path, then you would change this to: Directory Id=TARGETDIR Name=SourceDir Directory Id=WindowsVolume Directory Id=INSTALLDIR Name=TopDir Directory Id=SecondDir Name=SecondDir / /Directory /Directory /Directory and you eliminate the unneeded SetDirectory custom action. From: bwhee...@dshs.wa.gov To: wix-users@lists.sourceforge.net Date: Thu, 10 Oct 2013 21:12:06 + Subject: Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled After fighting the default OS locations I finally convinced others around here that going with what the OS wants for directory structure is much simpler to do and more stable and takes fewer steps of code. I have a suggestion that may help and is more stable than a custom action. Set a property that is whatyou want for the root of your folder structure. In this example I use the Set WINDOWSVOLUME = [WindowsVolume] - it's always available and it is usually C: !-- WINDOWSVOLUME is the root above the Windows folder. This forces the install out of PrograFiles-- SetDirectory Id=WINDOWSVOLUME Value=[WindowsVolume]/ Directory Id=TARGETDIR Name=SourceDir Directory Id=WINDOWSVOLUME Directory Id=TopDir Name=TopDir Directory Id=SecondDir Name=SecondDir / /Directory /Directory /Directory -Original Message- From: Walter Dexter [mailto:wfdex...@gmail.com] Sent: Thursday, October 10, 2013 1:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled Moving the custom actions for setting the C Drive to be After CostFinalized resolved the problem. WiX threw an error when I tried before CostInitialize. Thanks! On Thu, Oct 10, 2013 at 2:20 PM, Walter Dexter wfdex...@gmail.com wrote: I just tested by copying the installed files to where the log say C_DRIVE would be prior to the redefine (in my case, e:\cdrive) and then ran the uninstall. The installed files were deleted from e:\... rather than c:\... proving this theory. Looks like I need to change when the custom action triggers. I'll try before CostInitialize and see what happens since you like it. I'm very new to both MSI and WiX. (I'm really good at Inno Setup but our corporate standard says make MSIs. It also says to use WISE which is even more confusing than WiX for me and my developer brain.) Thanks a lot! On Thu, Oct 10, 2013 at 1:33 PM, Edwin Castro 0ptikgh...@gmx.us wrote: On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro - - October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg. clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
I met with this issue either, my solution is adding a custom action dll to delete all files while uninstall, but this is way too naive. 2013/10/10 Walter Dexter wfdex...@gmail.com I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install log https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX source https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall log https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Best Regards, Peng Lv Nanjing University, Computer Science Technology Email: penn...@gmail.com Website: http://www.rebornix.com -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Log file suggests the files were removed: MSI (s) (60:6C) [16:04:58:163]: Executing op: ActionStart(Name=RemoveFiles,Description=Removing files,Template=File: [1], Directory: [9]) MSI (s) (60:6C) [16:04:58:163]: Executing op: ProgressTotal(Total=10,Type=1,ByteEquivalent=175000) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\SCRIPT\copy\Installers\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=1_eSC_MCDUSA_image.exe,,ComponentId={03D049A5-E608-4957-A8EE-8580775EF417}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=2_eSC_USA_integrations.exe,,ComponentId={A370D6C0-AED5-480D-99F2-E750FEBCCD7B}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=3_eSC_USA_programs.exe,,ComponentId={46935DA8-6E5F-45E7-8DC2-6F6C3222BB52}) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\SCRIPT\copy\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=roles001.ini,,ComponentId={CAC927EC-DAB0-43D2-9336-AF0348B8EF53}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCReImage.cpy,,ComponentId={5D944DD7-F34C-40A7-B1AB-1B65BA4C2143}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCReStage.cpy,,ComponentId={20136940-8B88-420C-A621-229C4CE5AA1D}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCScript.cpy,,ComponentId={D064E2E4-52AF-49AB-889B-F1E35F7BF491}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCStaging.cpy,,ComponentId={2155BD67-8B43-4BBA-84B6-3B358FCA77F7}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCStartup.cpy,,ComponentId={2EEED5D1-D21F-4223-8A10-0AE1BC87B08B}) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\gum\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=20130909USSTC001_PasswordChange.gum,,ComponentId={E387FF1C-6976-4F3D-80A3-A4CF2F79BC68}) On Wed, Oct 9, 2013 at 11:05 PM, Peng Lv penn...@gmail.com wrote: I met with this issue either, my solution is adding a custom action dll to delete all files while uninstall, but this is way too naive. 2013/10/10 Walter Dexter wfdex...@gmail.com I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install log https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX source https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall log https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Best Regards, Peng Lv Nanjing University, Computer Science Technology Email: penn...@gmail.com Website: http://www.rebornix.com -- October Webinars: Code for
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Yes, I saw that. The logs seemed to me to say they were removed, but the files are in fact still there. Any ideas? I took the Chapter 1 example out of the WiX 3.6 Developer's Guide book, built it and ran it on the same system and it installed and uninstalled properly, so the system isn't fundamentally broken. If nothing uninstalled I would have no problem believing the system is broken - they've been hacked on for years by people who are more comfortable with Unix - but that isn't the case here. On Thu, Oct 10, 2013 at 3:38 AM, Rob Mensching r...@robmensching.com wrote: Log file suggests the files were removed: MSI (s) (60:6C) [16:04:58:163]: Executing op: ActionStart(Name=RemoveFiles,Description=Removing files,Template=File: [1], Directory: [9]) MSI (s) (60:6C) [16:04:58:163]: Executing op: ProgressTotal(Total=10,Type=1,ByteEquivalent=175000) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\SCRIPT\copy\Installers\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=1_eSC_MCDUSA_image.exe,,ComponentId={03D049A5-E608-4957-A8EE-8580775EF417}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=2_eSC_USA_integrations.exe,,ComponentId={A370D6C0-AED5-480D-99F2-E750FEBCCD7B}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=3_eSC_USA_programs.exe,,ComponentId={46935DA8-6E5F-45E7-8DC2-6F6C3222BB52}) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\SCRIPT\copy\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=roles001.ini,,ComponentId={CAC927EC-DAB0-43D2-9336-AF0348B8EF53}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCReImage.cpy,,ComponentId={5D944DD7-F34C-40A7-B1AB-1B65BA4C2143}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCReStage.cpy,,ComponentId={20136940-8B88-420C-A621-229C4CE5AA1D}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCScript.cpy,,ComponentId={D064E2E4-52AF-49AB-889B-F1E35F7BF491}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCStaging.cpy,,ComponentId={2155BD67-8B43-4BBA-84B6-3B358FCA77F7}) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=STCStartup.cpy,,ComponentId={2EEED5D1-D21F-4223-8A10-0AE1BC87B08B}) MSI (s) (60:6C) [16:04:58:179]: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\gum\) MSI (s) (60:6C) [16:04:58:179]: Executing op: FileRemove(,FileName=20130909USSTC001_PasswordChange.gum,,ComponentId={E387FF1C-6976-4F3D-80A3-A4CF2F79BC68}) On Wed, Oct 9, 2013 at 11:05 PM, Peng Lv penn...@gmail.com wrote: I met with this issue either, my solution is adding a custom action dll to delete all files while uninstall, but this is way too naive. 2013/10/10 Walter Dexter wfdex...@gmail.com I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install log https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX source https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall log https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Your CA_SetCDrive is not being run during uninstallation. You'll notice the uninstall log refers to C:\CDrive\ all over the place. I don't understand why you need that custom action at all. Can't you hardcode C:\ into the Name attribute? -- Nicolás 2013/10/10 Walter Dexter wfdex...@gmail.com: I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install loghttps://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX sourcehttps://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall loghttps://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
It was my understanding that putting full path into Name wouldn't work. Everything I found online said what I did is the way to do it. I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. On Oct 10, 2013 12:47 PM, Nicolás Alvarez nicolas.alva...@gmail.com wrote: Your CA_SetCDrive is not being run during uninstallation. You'll notice the uninstall log refers to C:\CDrive\ all over the place. I don't understand why you need that custom action at all. Can't you hardcode C:\ into the Name attribute? -- Nicolás 2013/10/10 Walter Dexter wfdex...@gmail.com: I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install log https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX source https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall log https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
2013/10/10 Walter Dexter wfdex...@gmail.com: It was my understanding that putting full path into Name wouldn't work. Everything I found online said what I did is the way to do it. I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. During install: Executing op: SetTargetFolder(Folder=C:\POS_BACKUP\SCRIPT\copy\Installers\) Executing op: FileCopy(SourceName=2-celubo.exe|1_eSC_MCDUSA_image.exe,SourceCabKey=FILE_ESCINST_1,DestName=1_eSC_MCDUSA_image.exe,Attributes=512,FileSize=65329813,PerTick=32768,,VerifyMedia=1,CheckCRC=0,Version=0.0.0.0,Language=0,InstallMode=58982400,,,) During uninstall: Executing op: SetTargetFolder(Folder=C:\CDrive\POS_BACKUP\SCRIPT\copy\Installers\) Executing op: FileRemove(,FileName=1_eSC_MCDUSA_image.exe,,ComponentId={03D049A5-E608-4957-A8EE-8580775EF417}) That's certainly not the right path. -- Nicolás -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
I just tested by copying the installed files to where the log say C_DRIVE would be prior to the redefine (in my case, e:\cdrive) and then ran the uninstall. The installed files were deleted from e:\... rather than c:\... proving this theory. Looks like I need to change when the custom action triggers. I'll try before CostInitialize and see what happens since you like it. I'm very new to both MSI and WiX. (I'm really good at Inno Setup but our corporate standard says make MSIs. It also says to use WISE which is even more confusing than WiX for me and my developer brain.) Thanks a lot! On Thu, Oct 10, 2013 at 1:33 PM, Edwin Castro 0ptikgh...@gmx.us wrote: On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Moving the custom actions for setting the C Drive to be After CostFinalized resolved the problem. WiX threw an error when I tried before CostInitialize. Thanks! On Thu, Oct 10, 2013 at 2:20 PM, Walter Dexter wfdex...@gmail.com wrote: I just tested by copying the installed files to where the log say C_DRIVE would be prior to the redefine (in my case, e:\cdrive) and then ran the uninstall. The installed files were deleted from e:\... rather than c:\... proving this theory. Looks like I need to change when the custom action triggers. I'll try before CostInitialize and see what happens since you like it. I'm very new to both MSI and WiX. (I'm really good at Inno Setup but our corporate standard says make MSIs. It also says to use WISE which is even more confusing than WiX for me and my developer brain.) Thanks a lot! On Thu, Oct 10, 2013 at 1:33 PM, Edwin Castro 0ptikgh...@gmx.us wrote: On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
After fighting the default OS locations I finally convinced others around here that going with what the OS wants for directory structure is much simpler to do and more stable and takes fewer steps of code. I have a suggestion that may help and is more stable than a custom action. Set a property that is whatyou want for the root of your folder structure. In this example I use the Set WINDOWSVOLUME = [WindowsVolume] - it's always available and it is usually C: !-- WINDOWSVOLUME is the root above the Windows folder. This forces the install out of PrograFiles-- SetDirectory Id=WINDOWSVOLUME Value=[WindowsVolume]/ Directory Id=TARGETDIR Name=SourceDir Directory Id=WINDOWSVOLUME Directory Id=TopDir Name=TopDir Directory Id=SecondDir Name=SecondDir / /Directory /Directory /Directory -Original Message- From: Walter Dexter [mailto:wfdex...@gmail.com] Sent: Thursday, October 10, 2013 1:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled Moving the custom actions for setting the C Drive to be After CostFinalized resolved the problem. WiX threw an error when I tried before CostInitialize. Thanks! On Thu, Oct 10, 2013 at 2:20 PM, Walter Dexter wfdex...@gmail.com wrote: I just tested by copying the installed files to where the log say C_DRIVE would be prior to the redefine (in my case, e:\cdrive) and then ran the uninstall. The installed files were deleted from e:\... rather than c:\... proving this theory. Looks like I need to change when the custom action triggers. I'll try before CostInitialize and see what happens since you like it. I'm very new to both MSI and WiX. (I'm really good at Inno Setup but our corporate standard says make MSIs. It also says to use WISE which is even more confusing than WiX for me and my developer brain.) Thanks a lot! On Thu, Oct 10, 2013 at 1:33 PM, Edwin Castro 0ptikgh...@gmx.us wrote: On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro - - October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg. clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled
Thanks for the suggestion, but our partition layout is wacky and we need to specify what drive for sure stuff goes on. This isn't Windows workstation or server as much as it is embedded system that happens to run Windows. This appears to be working, now that I changed when the custom action runs. (In reality of course I have more Directorys under the C_DRIVE one and files and so forth.) CustomAction Id=CA_SetCDrive Directory=C_DRIVE Value=c:\ / InstallExecuteSequence Custom Action=CA_SetCDrive After=CostFinalize / /InstallExecuteSequence Directory Id=TARGETDIR Name=SourceDir Directory Id=C_DRIVE Name=CDrive / /Directory Walt On Thu, Oct 10, 2013 at 4:12 PM, Wheeler, Blaine (DSHS/DCS) bwhee...@dshs.wa.gov wrote: After fighting the default OS locations I finally convinced others around here that going with what the OS wants for directory structure is much simpler to do and more stable and takes fewer steps of code. I have a suggestion that may help and is more stable than a custom action. Set a property that is whatyou want for the root of your folder structure. In this example I use the Set WINDOWSVOLUME = [WindowsVolume] - it's always available and it is usually C: !-- WINDOWSVOLUME is the root above the Windows folder. This forces the install out of PrograFiles-- SetDirectory Id=WINDOWSVOLUME Value=[WindowsVolume]/ Directory Id=TARGETDIR Name=SourceDir Directory Id=WINDOWSVOLUME Directory Id=TopDir Name=TopDir Directory Id=SecondDir Name=SecondDir / /Directory /Directory /Directory -Original Message- From: Walter Dexter [mailto:wfdex...@gmail.com] Sent: Thursday, October 10, 2013 1:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Wix MSI not uninstalling files when package uninstalled Moving the custom actions for setting the C Drive to be After CostFinalized resolved the problem. WiX threw an error when I tried before CostInitialize. Thanks! On Thu, Oct 10, 2013 at 2:20 PM, Walter Dexter wfdex...@gmail.com wrote: I just tested by copying the installed files to where the log say C_DRIVE would be prior to the redefine (in my case, e:\cdrive) and then ran the uninstall. The installed files were deleted from e:\... rather than c:\... proving this theory. Looks like I need to change when the custom action triggers. I'll try before CostInitialize and see what happens since you like it. I'm very new to both MSI and WiX. (I'm really good at Inno Setup but our corporate standard says make MSIs. It also says to use WISE which is even more confusing than WiX for me and my developer brain.) Thanks a lot! On Thu, Oct 10, 2013 at 1:33 PM, Edwin Castro 0ptikgh...@gmx.us wrote: On 10/10/13 11:08 AM, Walter Dexter wrote: I had a similar thought about an hour ago while driving about c_drive not getting redefined properly for the uninstall and will try to validate if that's the problem later this afternoon. I do see it and all the directories getting property changed to the right path prior to the FileRemove entries in the uninstall log, though. I think your CA_SetCDrive custom action is scheduled too late. I thought directories needed to be set prior to CostInitialize. -- Edwin Castro - - October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg. clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140
[WiX-users] Wix MSI not uninstalling files when package uninstalled
I posted this at Stackoverflow as well, but I'm just at a loss for what to even look at, so I'm hoping someone can point me in a good direction. I have been using WiX to create an installer for my project. It's fairly simple, just drop some files in three different directories and run a VBScript to generate one last file. I'm a total WiX and MSI noob. The standard thing to use at work is WISE but I just can't figure out what to do with that at all, so I gave WiX a try. After some difficulties with the VBS I got the install working. When I uninstall the package disappears out of Control Panel but the files that were installed are still there. I know the one I generated on the fly is going to be unless I do something special to remove it, but the others should just go away, right? I have install and uninstall logs, and also have posted the WiX source file. Links are below. Any help is much appreciated! install loghttps://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ) WiX sourcehttps://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzR0FDMXc2cXhvMDQ/edit?usp=sharing ) uninstall loghttps://docs.google.com/file/d/0B0qy0SfToYUzUUtXVUxpQ0lESm8/edit?usp=sharing ( https://docs.google.com/file/d/0B0qy0SfToYUzMUJYMk00UjhreDg/edit?usp=sharing ) Note that this is being installed on Server 2003. The package is using explicit paths and drive letters. I know that isn't considered best practice, but that's where the files need to go. This doesn't go to a variety of computer types and configurations; there are over ten thousand of these systems in our retail locations and they're all identical. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users