Re: [WiX-users] Error 1723. A DLL required for this install tocomplete could not be run. C#
Well, I've tried setting "Copy Local" property to true for all referenced assemblies. Unfortunately, it didn't help :'-( If you're using a project created from a WiX C# or VB Custom action project template, you need to set the "Copy Local" property to true for any referenced assemblies to be included in the custom action package. (That affects the inputs to MakeSfxCA.exe which is the build tool that creates the CA package when you build the project.) If the referenced assemblies are not included, then the custom action will be missing dependencies at install time if the dependencies are not found in the GAC as Heath said. -Original Message- From: Natalia Gladkova [mailto:natalia.gladk...@arcadia.spb.ru] Sent: Friday, April 10, 2009 8:18 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Error 1723. A DLL required for this install tocomplete could not be run. C# I'm not using DllImportAttribute. I'm referencing Microsoft.SqlServer.ConnectionInfo.dll, which is not packaged together with makesfxca.exe. It is the first time I hear about makesfxca.exe. How should I use it? And it still seems to me very confusing that if I just undo my changes (which were just adding new custom action) all works perfectly well! Best regards, Natalia Gladkova -Original Message- From: Heath Stewart [mailto:clubs...@gmail.com] Sent: Friday, April 10, 2009 6:43 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Error 1723. A DLL required for this install tocomplete could not be run. C# Are you using P/Invoke (DllImportAttribute) for any custom actions? If the referenced DLL is not available in the system PATH environment variable you will see this. This is common for native debug builds, but for managed CAs you shouldn't see this unless you're referencing an assembly that you're not packaging together with makesfxca.exe. And if you're not using makesfxca.exe, that's likely the problem. Unless managed assemblies are available in the GAC at install time, the Windows Installer service cannot access them. On Fri, Apr 10, 2009 at 6:10 AM, Natalia wrote: > > I know that using custom actions written in C# is not a very good idea, but > it happened we are using it in our project. > > I experience very exasperating problem with my dll. SOMETIMES, when I add > new custom action to my cs-file, some custom action that worked good > previously starts to return the error mentioned in the title: "A DLL > required for this install to complete could not be run". Installer cannot > find entry point. > > I suspected that there's something wrong with encoding, tried to open my > cs-file in various editors, remove spaces between "[CustomAction]" and the > function's definition... Sometimes it helped in miraculous way. But now I > can do nothing about this, my custom action doesn't work. > > Maybe someone experienced the same thing and knows some way to fix it? > > I use Microsoft Visual Studio 2008 with Votive, WiX 3.0.5120.0. > -- > View this message in context: > http://n2.nabble.com/Error-1723.-A-DLL-required-for-this-install-to-complete -could-not-be-run.-C--tp2616125p2616125.html > Sent from the wix-users mailing list archive at Nabble.com. > > > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Heath Stewart Deployment Technologies Team, Microsoft http://blogs.msdn.com/heaths -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-us
[WiX-users] how to pop up a messageBox to tell user "Uninstall is finish" when uninstall process is finish?
hi I use wix to generate my installer, now, i meet a trouble, when the user uninstall the program, we will see some dialogs with progressbar to show the uninstall progress, what i want to do is to pop up a messagebox with text "Uninstall is finish" after these progress dialogs. how can i do? I appreciate any help / idea Thanks :> vincent -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Wix Installer Upgrade problem
Hi, I have two wix installer v3.0 source files. One source file for old version(1.0.0.0) and another one for new version(1.01.1). I have changed version in product and upgradeversion tags in 1.0.1.1 and upgradecode is same for both files. Also I included . First I installed version 1.0.0.0. That installed fine. Then I tried to installed new version 1.0.1.1 installer, its giving an error that "Another Version of this product is already installed". Also I tried with changing product id. In this case, I'm getting two instances in 'Add/Remove Programs'. Whats the wrong I'm doing? How do I upgrade my product? *Old Version (1.0.0.0) source snippet:* *New Version (1.0.1.1) source snippet:* -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Uninstall Custom Action -- Need Help
Dear All, Thank you for discussing different things. It helps a lot to people like me in the learning stage. I have come across a situation where installed files are not getting deleted if I choose installation other than Program Files/MyApp. Also how to get input from user if I wish my database file get deleted only if user agree to delete it; means I want to generate alert / pop up while uninstalling. Here is my code : Anyone have idea??? Thanks, Ron -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Uninstall Application Issues
Dear All, Thank you for discussing different things. It helps a lot to people like me in the learning stage. I have come across a situation where installed files are not getting deleted if I choose installation other than Program Files/MyApp. Also how to get input from user if I wish my database file get deleted only if user agree to delete it; means I want to generate alert / pop up while uninstalling. Here is my code : Anyone have idea??? Thanks, Ron -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Which product(s) is(are) referencing a component?
Hello list, Does anyone know of a tool that, given a component GUID, will list all the products that are referencing that component? Thanks, Luke -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Which product(s) is(are) referencing a component?
You could start with this, VBScript. It lists all the components on a system and the client products. Option Explicit Public installer, fullmsg, comp, a, prod, fso, pname, ploc, pid, psorce Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("comps.txt", True) ' Connect to Windows Installer object Set installer = CreateObject("WindowsInstaller.Installer") a.writeline ("MSI Components") on error resume next For Each comp In installer.components a.writeline (comp & " is used by the product:") for each prod in Installer.ComponentClients (comp) pid = installer.componentpath (prod, comp) pname = installer.productinfo (prod, "InstalledProductName") a.Writeline (" " & pname & " " & prod & "and is installed at " & pid) Next Next Phil Wilson -Original Message- From: Luke Bakken [mailto:luke.bak...@gmail.com] Sent: Monday, April 13, 2009 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Which product(s) is(are) referencing a component? Hello list, Does anyone know of a tool that, given a component GUID, will list all the products that are referencing that component? Thanks, Luke -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix Installer Upgrade problem
Also I tried with changing product id. This is the correct thing to do. The product code must always be changed for a major upgrade. In this case, I'm getting two instances in 'Add/Remove Programs'. The old product has not been removed because you have erroneously set the OnlyDetect attribute to 'yes' on the 'PREVIOUSVERSIONSINSTALLED' UpgradeVersion element. -- View this message in context: http://n2.nabble.com/Wix-Installer-Upgrade-problem-tp2627135p2629519.html Sent from the wix-users mailing list archive at Nabble.com. -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] binary dependencies in binary stream
I'm not suggesting this as a means of second-guessing what Windows Installer is doing. I did say that the Temp folder was only an example of a location that could be used. For example, if someone wants a custom action that consists of a Dll call, it needs a side-by-side dependent Dll and a data file, then just install them all to some folder somewhere, call the Dll CA (a call to Dll installed with the app) and then remove all those files afterwards. Obviously the files need to be installed (the CA can't be immediate), and the component guids null so that MSI won't miss them when they're removed, and you won't be able to call the CA again. That seemed to be the kind of thing the OP was looking for. Phil Wilson -Original Message- From: Heath Stewart [mailto:clubs...@gmail.com] Sent: Saturday, April 11, 2009 9:24 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] binary dependencies in binary stream But how, when, and where the CA DLLs is not documented. You should not take advantage of undocumented features. Compiling and linking everything int your CAs as needed is recommended (or, better, don't require CAs during install/maintenance). On Fri, Apr 10, 2009 at 9:52 AM, Wilson, Phil wrote: > You could just install the files to (for example) somewhere in the Temp > folder. Make sure the installer component guids are null so that they're > not registered or managed by MSI, and then remove them when your code (or > your custom action) doesn't need them. > > Phil Wilson > > > -Original Message- > From: Thomas S. Trias [mailto:tomtr...@artizan.com] > Sent: Friday, April 10, 2009 9:12 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] binary dependencies in binary stream > > Is there any good way to deploy a temporary file resource using the File > table and standard actions? I know that the scheduling gets tricky, > especially since RemoveFiles occurs before InstallFiles. > > I wouldn't be one to second guess Bob, anyway. :-) > > It's really more of an academic question. > > Thomas S. Trias > Senior Developer > Artizan Internet Services > http://www.artizan.com/ > > > Original Message > Subject: Re: [WiX-users] binary dependencies in binary stream > From: Bob Arnson > To: General discussion for Windows Installer XML toolset. > > Date: 4/10/2009 6:05 AM > > Leo ... > > wrote: > >> How could I include two binaries where one references the other in > >> the binary stream for use as custom actions? > > > > There's no built-in support for that; you'd need another custom action > > to stream out the dependency. > > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Heath Stewart Deployment Technologies Team, Microsoft http://blogs.msdn.com/heaths -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Which product(s) is(are) referencing a component?
Phil, this is perfect. Thanks. On Mon, Apr 13, 2009 at 11:40 AM, Wilson, Phil wrote: > You could start with this, VBScript. It lists all the components on a system > and the client products. > > Option Explicit > Public installer, fullmsg, comp, a, prod, fso, pname, ploc, pid, psorce > > Set fso = CreateObject("Scripting.FileSystemObject") > Set a = fso.CreateTextFile("comps.txt", True) > > ' Connect to Windows Installer object > Set installer = CreateObject("WindowsInstaller.Installer") > a.writeline ("MSI Components") > on error resume next > For Each comp In installer.components > a.writeline (comp & " is used by the product:") > for each prod in Installer.ComponentClients (comp) > pid = installer.componentpath (prod, comp) > pname = installer.productinfo (prod, "InstalledProductName") > a.Writeline (" " & pname & " " & prod & "and is installed at " & pid) > Next > Next > > Phil Wilson > > > -Original Message- > From: Luke Bakken [mailto:luke.bak...@gmail.com] > Sent: Monday, April 13, 2009 8:25 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Which product(s) is(are) referencing a component? > > Hello list, > > Does anyone know of a tool that, given a component GUID, will list all > the products that are referencing that component? > > Thanks, > Luke > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix Installer Upgrade problem
Thanks Alex Cater, Now Major upgrade working fine. Alex Cater wrote: > Also I tried with changing product id. > > This is the correct thing to do. The product code must always be changed for > a major upgrade. > > > In this case, I'm getting two instances in 'Add/Remove Programs'. > > > The old product has not been removed because you have erroneously set the > OnlyDetect attribute to 'yes' on the 'PREVIOUSVERSIONSINSTALLED' > UpgradeVersion element. > > > Minimum='1.0.0.0' IncludeMinimum='yes' Maximum='1.0.1.1' IncludeMaximum='no'/> > > > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2056 - Release Date: 04/13/09 > 05:51:00 > > -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix Installer Upgrade problem
Hi Alex, I'm having one problem with Wix installer upgrade. My installer working fine for upgrades of older version. If new version(1.0.1.1) installed, then I try to install old version (1.0.0.0). Thats too installing. I'm getting two instances of my product in 'Add/Remove Programs'. What will be the cause? Thanks. Regards, -SMR Michael wrote: > Thanks Alex Cater, > > Now Major upgrade working fine. > Alex Cater wrote: > >> Also I tried with changing product id. >> >> This is the correct thing to do. The product code must always be changed for >> a major upgrade. >> >> >> In this case, I'm getting two instances in 'Add/Remove Programs'. >> >> >> The old product has not been removed because you have erroneously set the >> OnlyDetect attribute to 'yes' on the 'PREVIOUSVERSIONSINSTALLED' >> UpgradeVersion element. >> >> >> > Minimum='1.0.0.0' IncludeMinimum='yes' Maximum='1.0.1.1' >> IncludeMaximum='no'/> >> >> >> >> >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.0.238 / Virus Database: 270.11.54/2056 - Release Date: 04/13/09 >> 05:51:00 >> >> >> > > > -- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.54/2056 - Release Date: 04/13/09 > 05:51:00 > > -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Large installer and disk space requirements
I have a 1.3 GB MSI installer. When I begin installing it , it copies itself to %TEMP% and C:\Windows\Installer directory. This increases the disk space required on C: by 2.6 GB apart from the space required for actual installation. Is there a way to prevent the copying of installer to either or both of these system directories (%TEMP% and C:\Windows\Installer)? Thanks, Suraj -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users