2008/10/30 Arun Kumar A V <[EMAIL PROTECTED]>: > > > After turning on MSI logging, I found that my issue is more complicate. > > > The shortcut is created for a file installed in ALLUSER ( Per Machine) mode, > so I must set Advertise="yes" on the shortcut as shown below. This turns out > be the problem later. > > <Component Id="SomeApp" Guid ="Guid"> > <File Id ="SomeApp_exe" Name ="SomeApp.exe" Source > ="$(var.MSIBuildDir)Signed\EXE\SomeApp.exe"> > <Shortcut Id="SomeAppShortcut" Directory ="BLAHProgramMenuFolder" > Name="SomeApp" Advertise="yes" Icon="SomeAppIcon.exe" DisplayResourceDll > ="[!SomeApp_exe]" DescriptionResourceDll ="[!SomeApp_exe]" > > <Icon Id="SomeAppIcon.exe" SourceFile > ="$(var.MSIBuildDir)Signed\EXE\SomeApp.exe"/> > </Shortcut > > </File> > </Component> > > The above worked like charm, until i have to place a uninstall shortcut for > the product, like the code below > > > <Component Id ="BLAHUninstall" Guid > ="0E588613-C67B-402A-9F50-BDF4A833F420"> > <RegistryValue Id="BLAHUninstaller" > Root="HKCU" > Key="SOFTWARE\MyCompany\BLAH" > Value="BLAHUnistall" Type="string" Name ="BLAHUninstall" KeyPath ="yes"/> > <Shortcut Id="UninstallBLAH" > > Name="Uninstall BLAH" > Target="[System64Folder]msiexec.exe" > Arguments="/x [ProductCode]" > Directory="BLAHProgramMenuFolder" > Description="Uninstalls BLAH" /> > > </Component> > > > > > Now, because this is the only way i can place an uninstall link, with a dummy > entry in the HKCU root key. When a user clicks the above advertised > SomeApplication.exe shortcut, msi tries to install the dummy registry key in > HKCU root key, and so i have an msi installation going when the user uses the > shortcut for the first time. > > Is there any way i can place a Unistall shortcut without a per-user Component > (Registry Key in this case) ? Or is it possible to add a non-advertised > shortuct for items installed on Per-Machine Mode ? > > Any suggestions are highly appreciated. > > thanks > Arun V
Already answered in this list, search the archive. Look here for background: http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx And there for another solution: http://msdn.microsoft.com/en-us/library/aa368297(VS.85).aspx ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users