The First link below, only talks about Uninstall shortcut for per-user mode, this is what i followed to get to where iam now. The Second link doesnt work. I did do extensive search on the mailing list before posting it here again.
Any other ideas would help.thanks Arun ******************************** 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 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 ------------------------------ Message: 4 Date: Thu, 30 Oct 2008 08:40:17 -0700 From: Rob Mensching <[EMAIL PROTECTED]> Subject: Re: [WiX-users] 3 problems with "integration" of WiX and VS2005 SP1 To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" The bug was reactivated yesterday (or the day before). -----Original Message----- From: Bob Lim [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 02:52 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] 3 problems with "integration" of WiX and VS2005 SP1 I have the same first problem on debug and release builds with the latest week release on VS2005 SP1. I really hope if it could get fixed soon as I need to build a custom action C++ dll soon. 1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information corrupt; recompile module Thank you very much! Best regards, Bob Lim Try the new Yahoo! Messenger ------------------------------------------------------------------------- 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 ------------------------------ Message: 5 Date: Thu, 30 Oct 2008 09:41:59 -0600 From: "Jon W" <[EMAIL PROTECTED]> Subject: [WiX-users] which bootstrapper do you use? To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1 What are you using for a bootstrapper? I've been looking at the wix mailing list, and elsewhere, and it appears as though everybody uses something different. For example, setupbld, msbuild, 3rd party software, homegrown, etc... As a C++ app, I don't need any .net runtime libs, and would like the vc9 runtime libs exe to only run if it hasn't been installed before, etc.. Thank you, as any initial ideas help on what to use. I'm also using wix v2. -Jon ------------------------------ Message: 6 Date: Thu, 30 Oct 2008 08:42:10 -0700 From: Rob Mensching <[EMAIL PROTECTED]> Subject: Re: [WiX-users] uninstall per user product To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" MsiZap is meant as a last ditch support tool. It isn't intended to be shipped in a product. I wouldn't be surprised if the licensing doesn't allow for the tool to be redisted. -----Original Message----- From: hyung [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 23:04 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] uninstall per user product Thanks everyone for the help. I have managed to detect all users who ever installed our product using MsiEnumProductsEx and LookupAccountSidW. Now I am facing another challenging problem - how do we uninstall all per-user installations? If some accounts are no longer accessible, what can we do? Question: Can I use MsiZap to remove all per-user installations? I have tried "MsiZap TW! {productGuid} but according to the help W option requires that the profiles for all of the users be loaded. Anyone knows how to load all users' profile so that I can use "MsiZap TW! {productGuid}" to remove all per-user installations? Any hints will be much appreciated. Thanks, Hyung Buddell, James wrote: > > Tidying up per-user installs is almost impossible, especially when some > users might have left your business so their accounts are no longer > accessible. I try not to use it, but there's always MSIZap... > > -----Original Message----- > From: Ian Elliott (Excell Data Corporation) > [mailto:[EMAIL PROTECTED] > Sent: 24 October 2008 18:46 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] uninstall per user product > > It won't uninstall. Just detects then allows you to put a message up and > advise the user to uninstall the old per-user app then re-run setup. > > I think you are correct that user needs to be admin to run this. > > -----Original Message----- > From: Rob Mensching [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 10:44 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] uninstall per user product > > Only when admin right? And this won't uninstall right? I think you'd > need to load all the user's profiles to uninstall per-user applications. > Loading user profiles is tricky from what I've heard. > > -----Original Message----- > From: Ian Elliott (Excell Data Corporation) > [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 10:41 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] uninstall per user product > > I've used a custom action to do something similar in the past. A > stripped down version of the code is below. I can't guarantee 100% > effectiveness but it worked for my needs at the time. > > UINT __stdcall FunctionName (MSIHANDLE hMsi) { > UINT uiStatus = ERROR_SUCCESS; > > WriteToLog( hMsi, _T("Entering")); > > uiStatus = MsiEnumProductsEx( > _T("{PUT_GUID_HERE}"), // product code to search for > _T("s-1-1-0"), // search all users > MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED > | MSIINSTALLCONTEXT_MACHINE, // search all users > 0, > NULL, > NULL, > NULL, > NULL); > > > > if (uiStatus == ERROR_SUCCESS) // Product was found > { > MSIHANDLE hError = MsiCreateRecord(1); > MsiRecordSetInteger(hError, 1, 2001); // Use code 2001 from the > msi's Error table. Author 2001 in wix file. > MsiProcessMessage(hMsi, INSTALLMESSAGE_ERROR, hError); > } > else // we didn't find the Product > { > WriteToLog( hMsi, _T("Product not found")); > } > > WriteToLog( hMsi, _T("Leaving")); > return uiStatus; > } > > -----Original Message----- > From: Rob Mensching [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 10:36 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] uninstall per user product > > Sounds very difficult to do correctly. Lots of complicated stuff in > there from what I've heard. > > -----Original Message----- > From: hyung [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 09:18 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] uninstall per user product > > > Thanks for the answer. > > Any hints on how I can find who installed? I need to provide an > uninstall utility which removes prior versions. > > Thanks, > Hyung > > > Rob Mensching-2 wrote: >> >> I believe you'd have to log in as each user and execute the installer >> as that user. >> >> -----Original Message----- >> From: hyung [mailto:[EMAIL PROTECTED] >> Sent: Thursday, October 23, 2008 23:47 >> To: wix-users@lists.sourceforge.net >> Subject: [WiX-users] uninstall per user product >> >> >> Hi all, >> >> I have changed the product install type from per-user to per-machine >> and want to uninstall prior per-user installs. According to the >> archived emails it seems I need to write an uninstall utilitiy to >> remove all products installed by users. My question is "How can I find > >> all users who installed the prior version?" >> >> We have used a same product id so I can detect whether the prior >> version is installed or not by checking: >> HLKM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{productid} >> However as only a user who installed the prior version can uninstall >> it, I need to find a list of users who installed the prior version. Is > >> there any Windows Installer API that supports this kind of scenario? >> Any hints will be appreciated. >> >> Thanks, >> Hyung >> >> -- >> View this message in context: >> http://n2.nabble.com/uninstall-per-user-product-tp1371127p1371127.html >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> ---------------------------------------------------------------------- >> --- 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 >> >> >> ---------------------------------------------------------------------- >> --- 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 >> >> > > -- > View this message in context: > http://n2.nabble.com/uninstall-per-user-product-tp1371127p1372635.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > 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 > > > ------------------------------------------------------------------------ > - > 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 > > > ------------------------------------------------------------------------ > - > 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 > > > ------------------------------------------------------------------------ > - > 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 > > > ------------------------------------------------------------------------ > - > 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 > > > -- > This e-mail is confidential and the information contained in it may be > privileged. It should not be read, copied or used by anyone other than > the intended recipient. If you have received it in error, please contact > the sender immediately by telephoning +44 (0)20 7623 8000 or by return > email, and delete the e-mail and do not disclose its contents to any > person. We believe, but do not warrant, that this e-mail and any > attachments are virus free, but you must take full responsibility for > virus checking. Please refer to > http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail > disclaimer statement and monitoring policy. > > Dresdner Kleinwort is the trading name of the investment banking division > of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner > Kleinwort Limited and their affiliated or associated companies. Dresdner > Bank AG is a company incorporated in Germany with limited liability and > registered in England (registered no. FC007638, place of business 30 > Gresham Street, London EC2V 7PG), and is authorised by the German Federal > Financial Supervisory Authority and by the Financial Services Authority > ('FSA') and regulated by the FSA for the conduct of designated business in > the UK. Dresdner Kleinwort Limited is a company incorporated in England > (registered no. 551334, registered office 30 Gresham Street, London EC2V > 7PG), and is authorised and regulated by the FSA. > > > ------------------------------------------------------------------------- > 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 > > -- View this message in context: http://n2.nabble.com/uninstall-per-user-product-tp1371127p1397042.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 ------------------------------ ------------------------------------------------------------------------- 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 End of WiX-users Digest, Vol 29, Issue 230 ****************************************** ------------------------------------------------------------------------- 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