From: Stefan K. <sk...@en...> - 2007-01-19 18:27:52
|
Hello everyone, I want to install both the x64 and the x86 version of an executable on the harddisk, no matter if the machine is x86 or x64. But I only want to create one start menu shortcut for the app, the one that is appropriate for the target OS where the msi gets installed. How Do I go about that? I tried this for the component, so the start menu entry for the x86 should not appear on x86, but unfortunately it appears anyway: <DirectoryRef Id="INSTALLDIR"> <Component Id='PnPMonComp' Guid='???????????'> <File Id='PnPMonEXE' Name='PnPMon.exe' LongName='PnPMon.exe' DiskId='1' Source='PnPMon.exe' Vital='yes'> <Shortcut Id="startmenuPnPMon" Directory="ProgramMenuDir" Name="PnPMon" LongName="PnPMon" WorkingDirectory='INSTALLDIR' Icon="PnPMon.exe" IconIndex="0"> <Condition Level="0">NOT VersionNT64</Condition> </Shortcut> </File> </Component> </DirectoryRef> How can I create a start menu shortcut conditionally? Any help appreciated, -- Stefan Kuhr -- View this message in context: http://www.nabble.com/Conditional-start-menu-shortcut-creation-tf3041366.html#a8453976 Sent from the wix-users mailing list archive at Nabble.com. |
From: Scott S. <ss...@xe...> - 2007-01-19 19:15:50
|
Our dll's are strongly typed (I think that's what its called). So we can't have dll's of different versions talking to each other. What is the best way to apply a hotfix for when you only need to replace a couple files. We can rebuild the new dll's to be the same version as the old ones, but how do you get those to be updated? -----Original Message----- From: wix...@li... [mailto:wix...@li...] On Behalf Of Stefan Kuhr Sent: Friday, January 19, 2007 1:28 PM To: wix...@li... Subject: [WiX-users] Conditional start menu shortcut creation Hello everyone, I want to install both the x64 and the x86 version of an executable on the harddisk, no matter if the machine is x86 or x64. But I only want to create one start menu shortcut for the app, the one that is appropriate for the target OS where the msi gets installed. How Do I go about that? I tried this for the component, so the start menu entry for the x86 should not appear on x86, but unfortunately it appears anyway: <DirectoryRef Id=3D"INSTALLDIR"> <Component Id=3D'PnPMonComp' Guid=3D'???????????'> <File Id=3D'PnPMonEXE' Name=3D'PnPMon.exe' = LongName=3D'PnPMon.exe' DiskId=3D'1' Source=3D'PnPMon.exe' Vital=3D'yes'> <Shortcut Id=3D"startmenuPnPMon" Directory=3D"ProgramMenuDir" Name=3D"PnPMon"=20 LongName=3D"PnPMon" WorkingDirectory=3D'INSTALLDIR' Icon=3D"PnPMon.exe" IconIndex=3D"0"> <Condition Level=3D"0">NOT VersionNT64</Condition> </Shortcut> </File> </Component> </DirectoryRef> How can I create a start menu shortcut conditionally? Any help appreciated, --=20 Stefan Kuhr --=20 View this message in context: http://www.nabble.com/Conditional-start-menu-shortcut-creation-tf3041366 .html#a8453976 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ WiX-users mailing list WiX...@li... https://lists.sourceforge.net/lists/listinfo/wix-users |
From: Bob A. <wi...@bo...> - 2007-01-20 22:03:08
|
Scott Sam wrote: > Our dll's are strongly typed (I think that's what its called). So we > can't have dll's of different versions talking to each other. What is > the best way to apply a hotfix for when you only need to replace a > couple files. We can rebuild the new dll's to be the same version as > the old ones, but how do you get those to be updated? > If all the DLLs need the same version, update them all to the new version number and include them all in the patch. If the version info is the only change, MSI delta patches will be tiny so there's little overhead in including all of them. You definitely don't want to lie about file versions -- MSI relies on it to be accurate. -- sig://boB http://bobs.org |
From: Bob A. <wi...@bo...> - 2007-01-20 22:03:06
|
Stefan Kuhr wrote: > <Component Id='PnPMonComp' Guid='???????????'> > <File Id='PnPMonEXE' Name='PnPMon.exe' LongName='PnPMon.exe' > DiskId='1' > Source='PnPMon.exe' Vital='yes'> > <Shortcut Id="startmenuPnPMon" Directory="ProgramMenuDir" > Name="PnPMon" > LongName="PnPMon" WorkingDirectory='INSTALLDIR' > Icon="PnPMon.exe" IconIndex="0"> > <Condition Level="0">NOT VersionNT64</Condition> > </Shortcut> > </File> > </Component> > Which version of WiX are you using? The Level attribute is used only for Feature parent elements and the code you posted should throw an error in recent releases of WiX (both v2 and v3). Check your .msi package to see that the condition is in the Component table. -- sig://boB http://bobs.org |
From: Stefan K. <sk...@en...> - 2007-01-20 22:16:27
|
Hi Bob, >Which version of WiX are you using? The Level attribute is used only for >Feature parent elements and the code you posted should throw an error in >recent releases of WiX (both v2 and v3). Check your .msi package to see >that the condition is in the Component table. I am using v2, latest and greatest (IIRC Dec 2006, official latest release of v2). No warnings and no errors whatsoever during build. Back to my problem: How would you go about solving it? Any help appreciated, -- Stefan Kuhr -- View this message in context: http://www.nabble.com/Conditional-start-menu-shortcut-creation-tf3041366.html#a8469927 Sent from the wix-users mailing list archive at Nabble.com. |
From: Bob A. <wi...@bo...> - 2007-01-23 04:35:04
|
Stefan Kuhr wrote: >> Which version of WiX are you using? The Level attribute is used only for >> Feature parent elements and the code you posted should throw an error in >> recent releases of WiX (both v2 and v3). Check your .msi package to see >> that the condition is in the Component table. >> > > I am using v2, latest and greatest (IIRC Dec 2006, official latest release > of v2). No warnings and no errors whatsoever during build. Back to my > problem: How would you go about solving it? > See my last sentence above. Is your condition present? If so, check a verbose log, both around InstallValidate to see what MSI is selecting for component state and in the install script to see the op-codes for shortcut creation. Note that a 32-bit MSI can't install 64-bit components so you'll need separate MSI packages anyway. -- sig://boB http://bobs.org |
From: Wilson, P. <Phi...@wo...> - 2007-01-22 18:36:14
|
There isn't really a good way to do this. It's not a Wix thing, it's the fact that a shortcut is part of a component, so when a component gets installed the shortcut gets installed, just like everything else in the component does.=20 Phil Wilson=20 -----Original Message----- From: wix...@li... [mailto:wix...@li...] On Behalf Of Stefan Kuhr Sent: Friday, January 19, 2007 10:28 AM To: wix...@li... Subject: [WiX-users] Conditional start menu shortcut creation Hello everyone, I want to install both the x64 and the x86 version of an executable on the harddisk, no matter if the machine is x86 or x64. But I only want to create one start menu shortcut for the app, the one that is appropriate for the target OS where the msi gets installed. How Do I go about that? I tried this for the component, so the start menu entry for the x86 should not appear on x86, but unfortunately it appears anyway: <DirectoryRef Id=3D"INSTALLDIR"> <Component Id=3D'PnPMonComp' Guid=3D'???????????'> <File Id=3D'PnPMonEXE' Name=3D'PnPMon.exe' = LongName=3D'PnPMon.exe' DiskId=3D'1' Source=3D'PnPMon.exe' Vital=3D'yes'> <Shortcut Id=3D"startmenuPnPMon" Directory=3D"ProgramMenuDir" Name=3D"PnPMon"=20 LongName=3D"PnPMon" WorkingDirectory=3D'INSTALLDIR' Icon=3D"PnPMon.exe" IconIndex=3D"0"> <Condition Level=3D"0">NOT VersionNT64</Condition> </Shortcut> </File> </Component> </DirectoryRef> How can I create a start menu shortcut conditionally? Any help appreciated, -- Stefan Kuhr --=20 View this message in context: http://www.nabble.com/Conditional-start-menu-shortcut-creation-tf3041366 .html#a8453976 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ WiX-users mailing list WiX...@li... https://lists.sourceforge.net/lists/listinfo/wix-users |