Thanks Dave,

With the custom action the dual mode setup works in most scenarios - But...
Does not work for the following
Install base setup UI mode - in per machine context.
Next do a silent install for the upgrade setup.
We receive a UAC prompt to remove the cached msi ( for the base install) and it 
does get removed.  However when the upgrade msi starts installing  we receive
Error 1925: You do not have sufficient privileges to complete this installation 
for all users on the machine. Login as administrator an then retry this 
installation.

This is a showstopper and most used workflow.

Any and all help appreciated.

Thanks

Mita

-----Original Message-----
From: wix-users-requ...@lists.sourceforge.net 
[mailto:wix-users-requ...@lists.sourceforge.net] 
Sent: Tuesday, May 06, 2014 4:34 PM
To: wix-users@lists.sourceforge.net
Subject: WiX-users Digest, Vol 96, Issue 8

Send WiX-users mailing list submissions to
        wix-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/wix-users
or, via email, send a message with subject or body 'help' to
        wix-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        wix-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of WiX-users digest..."


Today's Topics:

   1. Re: Use Path from BrowseDlg to Set Registry Value (Not the
      Install Path) (b.ras...@leonit.nl)
   2. Re: Use Path from BrowseDlg to Set Registry Value (Not the
      Install Path) (Pavan Konduru)
   3. Re: Use Path from BrowseDlg to Set Registry Value (Not    the
      Install Path) (Amanda Mallinger Reinartz)
   4. Re: Re Dual Mode Setups (David Connet)
   5. Re: Use Path from BrowseDlg to Set Registry Value (Not    the
      Install Path) (Pavan Konduru)


----------------------------------------------------------------------

Message: 1
Date: Wed,  7 May 2014 00:24:10 +0200 (CEST)
From: b.ras...@leonit.nl
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value
        (Not the        Install Path)
To: wix-users@lists.sourceforge.net
Message-ID: <20140506222410.69d0c296...@vms.leonit.nl>
Content-Type: text/plain; charset="UTF-8"

Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar 
basti...@careercontrol.nl.





------------------------------

Message: 2
Date: Tue, 6 May 2014 15:36:52 -0700
From: Pavan Konduru <pavan.kond...@accelrys.com>
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value
        (Not the        Install Path)
To: General discussion about the WiX toolset.
        <wix-users@lists.sourceforge.net>
Message-ID:
        <20b8733d5fb176458bbf9707d9d432c817a83a2...@exch1-colo.accelrys.net>
Content-Type: text/plain; charset="us-ascii"

Does the user have 2 separate browse dialogs during installation?

-----Original Message-----
From: Amanda Mallinger Reinartz [mailto:a...@metafile.com]
Sent: Tuesday, May 06, 2014 3:18 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

I'm new to the list (and new to WiX). I've built a few installs, but I have a 
new one that is giving me fits.

 

Can anyone share with me (or point me to a resource or disabuse me of false
notions) how I can set a property (not a Directory property) a user browsed for 
(it's a mapped drive)? Why would I want to do this? I need to enable the user 
to browse for a second path and then use that path to set a registry value (no 
files are installed in this second location during the installation). Where I'm 
stuck is updating the property with what the path the user browsed for. I an 
error about the property not being in the Directory table.

 

 

I've tried two things (using resources found online), but I've failed at both 
of them.

1.       I used a directory browse dialog, but I got the error about the
directory not being in the directory table.

2.       I tried to set a directory property, but I then got an error about
the drive not being local.

 

I'm sure I'm missing something.

Any guidance is greatly appreciated!

 

Thanks,

Amanda Mallinger

 

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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





------------------------------

Message: 3
Date: Tue, 6 May 2014 18:04:41 -0500
From: "Amanda Mallinger Reinartz" <a...@metafile.com>
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value
        (Not    the     Install Path)
To: "'General discussion about the WiX toolset.'"
        <wix-users@lists.sourceforge.net>
Message-ID: <017101cf697f$904d45a0$b0e7d0e0$@metafile.com>
Content-Type: text/plain;       charset="us-ascii"

Thanks for the question. Yes. One is used to set the install location. The one 
I'm struggling with is the second one.

Thanks for any help!
Amanda



-----Original Message-----
From: Pavan Konduru [mailto:pavan.kond...@accelrys.com]
Sent: Tuesday, May 06, 2014 5:37 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

Does the user have 2 separate browse dialogs during installation?

-----Original Message-----
From: Amanda Mallinger Reinartz [mailto:a...@metafile.com]
Sent: Tuesday, May 06, 2014 3:18 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

I'm new to the list (and new to WiX). I've built a few installs, but I have a 
new one that is giving me fits.

 

Can anyone share with me (or point me to a resource or disabuse me of false
notions) how I can set a property (not a Directory property) a user browsed for 
(it's a mapped drive)? Why would I want to do this? I need to enable the user 
to browse for a second path and then use that path to set a registry value (no 
files are installed in this second location during the installation). Where I'm 
stuck is updating the property with what the path the user browsed for. I an 
error about the property not being in the Directory table.

 

 

I've tried two things (using resources found online), but I've failed at both 
of them.

1.       I used a directory browse dialog, but I got the error about the
directory not being in the directory table.

2.       I tried to set a directory property, but I then got an error about
the drive not being local.

 

I'm sure I'm missing something.

Any guidance is greatly appreciated!

 

Thanks,

Amanda Mallinger

 

----------------------------------------------------------------------------
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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



----------------------------------------------------------------------------
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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





------------------------------

Message: 4
Date: Tue, 6 May 2014 16:16:44 -0700 (PDT)
From: David Connet <d...@agilityrecordbook.com>
Subject: Re: [WiX-users] Re Dual Mode Setups
To: "General discussion about the WiX toolset."
        <wix-users@lists.sourceforge.net>
Message-ID:
        <1399418204.51301.yahoomail...@web121103.mail.ne1.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

----- 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



------------------------------

Message: 5
Date: Tue, 6 May 2014 16:33:38 -0700
From: Pavan Konduru <pavan.kond...@accelrys.com>
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value
        (Not    the     Install Path)
To: General discussion about the WiX toolset.
        <wix-users@lists.sourceforge.net>
Message-ID:
        <20b8733d5fb176458bbf9707d9d432c817a83a2...@exch1-colo.accelrys.net>
Content-Type: text/plain; charset="us-ascii"

This is the source code from WIX Browse_dialog and InstallDirDlg, did you try 
doing the same for your other dialog?

The below is from the browse dialog that shows up when user clicks on browse.

<Dialog Id="MyBrowseDlg" Width="370" Height="270" 
Title="!(loc.BrowseDlg_Title)">
                <Control Id="PathEdit" Type="PathEdit" X="25" Y="202" 
Width="320" Height="18" Property="_BrowseProperty" Indirect="yes" />
                <Control Id="OK" Type="PushButton" X="240" Y="243" Width="56" 
Height="17" Default="yes" Text="!(loc.WixUIOK)">
                    <Publish Event="SetTargetPath" 
Value="[_BrowseProperty]">1</Publish>
                    <Publish Event="EndDialog" Value="Return">1</Publish>
                </Control>


Below is the code from the InstallDirDlg that has the path once the user 
selects  the install location. I have excluded a few line which are not 
required.


            <Dialog Id="MyInstallDirDlg" Width="370" Height="270" 
Title="!(loc.InstallDirDlg_Title)">
              <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="!(loc.WixUINext)" >
                <Control Id="Folder" Type="PathEdit" X="20" Y="100" Width="320" 
Height="18" Property="WIXUI_INSTALLDIR" Indirect="yes" />



As you can see the browse_property holds the path the user selected. In the 
UI.wxs where you sequence all your dialogs:


<Publish Dialog="MyInstallDirDlg" Control="Next" Event="SetTargetPath" 
Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="MyInstallDirDlg" Control="ChangeFolder" 
Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>

Probably you can do the same for your other dialog too .

-----Original Message-----
From: Amanda Mallinger Reinartz [mailto:a...@metafile.com]
Sent: Tuesday, May 06, 2014 4:05 PM
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

Thanks for the question. Yes. One is used to set the install location. The one 
I'm struggling with is the second one.

Thanks for any help!
Amanda



-----Original Message-----
From: Pavan Konduru [mailto:pavan.kond...@accelrys.com]
Sent: Tuesday, May 06, 2014 5:37 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

Does the user have 2 separate browse dialogs during installation?

-----Original Message-----
From: Amanda Mallinger Reinartz [mailto:a...@metafile.com]
Sent: Tuesday, May 06, 2014 3:18 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Use Path from BrowseDlg to Set Registry Value (Not the 
Install Path)

I'm new to the list (and new to WiX). I've built a few installs, but I have a 
new one that is giving me fits.

 

Can anyone share with me (or point me to a resource or disabuse me of false
notions) how I can set a property (not a Directory property) a user browsed for 
(it's a mapped drive)? Why would I want to do this? I need to enable the user 
to browse for a second path and then use that path to set a registry value (no 
files are installed in this second location during the installation). Where I'm 
stuck is updating the property with what the path the user browsed for. I an 
error about the property not being in the Directory table.

 

 

I've tried two things (using resources found online), but I've failed at both 
of them.

1.       I used a directory browse dialog, but I got the error about the
directory not being in the directory table.

2.       I tried to set a directory property, but I then got an error about
the drive not being local.

 

I'm sure I'm missing something.

Any guidance is greatly appreciated!

 

Thanks,

Amanda Mallinger

 

----------------------------------------------------------------------------
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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



----------------------------------------------------------------------------
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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



------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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





------------------------------

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity &#149; Requirements for 
releasing software faster &#149; 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


End of WiX-users Digest, Vol 96, Issue 8
****************************************


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; 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

Reply via email to