----- Original Message ----- > From: Mita Patel <mpa...@esri.com> > To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net> > Cc: > Sent: Tuesday, May 6, 2014 3:22 PM > Subject: [WiX-users] Re Dual Mode Setups > > Question: How do you set the installcontext early enough in the Major Upgrade > setup so that it finds the existing product's context to upgrade. > > We created a Single Package authored MSI to target Win 7 + > > To Identify setup package as a Dual Mode we set > ALLUSERS set to 2 > MSIINSTALLPERUSER set to 1 > > Issues: > > 1. Our dev team wants the default install context to be Per Machine so > we've provided a context dialog with the All Users defaulted (and the Next > button changes ALLUSERS to 1 to accomplish an All User installation) > a. In this scenario a silent installation defaults to Per User (any > suggestions on changing that behavior)
Pass ALLUSERS=1 on the command line > 2. Our issues comes into play on an upgrade of the base setup. Install > MSI > version 1 as All User to a non default location. Run MSI version 2 (same > Upgrade code as version 1) and it isn't finding version 1 as a product to > upgrade. It is installing Version 2 as a new product - ONLY when in an > AllUser > mode. You have to remember that and tweak the ALLUSERS/etc before FindRelatedProducts. I wimped out and wrote a customaction. You can check out what I did at https://sourceforge.net/p/agilitybook/code/HEAD/tree/trunk/AgilityBook/src/Projects/Installer/ Dave ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users