[WiX-users] Question about repeat installation of the same MSI
Hello. My installation package consists of MSI-file and set of directory with additional files. Those files are used by type 1 custom action (DLL file stored in a Binary table stream). Since these directory is required, in MSI there is a property that checks for the directory existence (via 'DirectorySearch ... Path=[SourceDir][MY_REDIST_DIR]...') and a custom action that aborts installation if that property is empty. My installation should not have maintainence installation. It should simple install everything as it is first-time installation. When I run installation for the first time on a clear machine every thing works fine. When I repeat same installation on the same machine the custom action that checks for the directory existence property triggers and aborts installations. Learning log I found that MSI-engine after first installation copies my msi into its internal directories and runs this copied msi instead. And this cause a problem since MSI-engine does not copy my additional directory. Is there any way to disable copying? How can make MSI-engine to use my msi but not copied? -- Best regards, Peter G. Sakhno C-MAP RUSSIA Ltd http://www.c-map.ru/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about repeat installation of the same MSI
As you've discovered, when you install a product a cached MSI file is created, and maintenance activities use this cached MSI file. It's the ProductCode guid that indicates that the product is already installed on the system, and when a product is already installed MSI goes into maintenance mode. It's this maintenance mode that you're encountering because the guid is already installed, and the fact that it uses a cached MSI file is pretty much just an implementation detail. It seems to me that your best choice is to make every version of your product a major upgrade. If there is a prior version of your product it will be silently uninstalled. Whether there is an older version or not, every install will be an install of a new product. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter G. Sakhno Sent: Wednesday, July 26, 2006 2:22 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Question about repeat installation of the same MSI Hello. My installation package consists of MSI-file and set of directory with additional files. Those files are used by type 1 custom action (DLL file stored in a Binary table stream). Since these directory is required, in MSI there is a property that checks for the directory existence (via 'DirectorySearch ... Path=[SourceDir][MY_REDIST_DIR]...') and a custom action that aborts installation if that property is empty. My installation should not have maintainence installation. It should simple install everything as it is first-time installation. When I run installation for the first time on a clear machine every thing works fine. When I repeat same installation on the same machine the custom action that checks for the directory existence property triggers and aborts installations. Learning log I found that MSI-engine after first installation copies my msi into its internal directories and runs this copied msi instead. And this cause a problem since MSI-engine does not copy my additional directory. Is there any way to disable copying? How can make MSI-engine to use my msi but not copied? -- Best regards, Peter G. Sakhno C-MAP RUSSIA Ltd http://www.c-map.ru/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Question about repeat installation of the same MSI
Hello. My installation package consists of MSI-file and set of directory with additional files. Those files are used by type 1 custom action (DLL file stored in a Binary table stream). Since these directory is required, in MSI there is a property that checks for the directory existence (via 'DirectorySearch ... Path=[SourceDir][MY_REDIST_DIR]...') and a custom action that aborts installation if that property is empty. My installation should not have maintainence installation. It should simple install everything as it is first-time installation. When I run installation for the first time on a clear machine every thing works fine. When I repeat same installation on the same machine the custom action that checks for the directory existence property triggers and aborts installations. Learning log I found that MSI-engine after first installation copies my msi into its internal directories and runs this copied msi instead. And this cause a problem since MSI-engine does not copy my additional directory. Is there any way to disable copying? How can make MSI-engine to use my msi but not copied? -- Best regards, Peter G. Sakhno C-MAP RUSSIA Ltd http://www.c-map.ru/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users