I would say that as a hack you could write a program that modifies/adds 
the manifest resource. it's not so much complicated.

On 11/01/2013 15:23, Raphael DUCOM wrote:
> Hi Rob,
>
> Can you confirm there is no workaround letting us to put 
> <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" /> 
> into the BA manifest ?
>
> Waiting for your answer,
> Thanks in advance,
> Bests,
>
> Raphael DUCOM
>
>
>
> Raphael DUCOM
> Développeur
> Tel :  | Fax : +33 979 999 341
> Web : www.prodware.fr
>
> -----Message d'origine-----
> De : Raphael DUCOM
> Envoyé : mardi 8 janvier 2013 16:44
> À : 'wix-users@lists.sourceforge.net'
> Objet : RE: Bootstrapper manifest
>
> Rob, I agree with you that all can be made with custom actions, but we have 
> implemented a custom installer which drives the MSI MSP installation with the 
> WiX Engine, and drives our custom installation Task with specific actions 
> which fits better our specific needs:
>
> The reason why we don't use CustomActions and have made the choice to 
> implement a custom boostrapper/installer is the WiX inability to correctly 
> manages multi-instance installations on a single machine with heterogeneous 
> environments for each instance (dependencies, configurations, etc). The way 
> WiX let developers create a multi-instance installer wasn't sufficient four 
> our needs. Moreover we have had the need to implement specific actions for 
> database update (we have a really specific way to make sql schema updates) 
> directly depending on SQL / IIS configuration, then we have had the need to 
> implement a working system in order to correctly configure a IIS and a SQL in 
> a multi-instance mode, without all the actually related problems WiX 
> encounter.
>
> For all these reasons, we have made the choice to only use WiX to drives the 
> msi / msp installations, and have the hand on all the things WiX don't know 
> how to do, or is really too hard to implement and debug with WiX.
>
> Now we have a working system, as soon as the use run the installer with "Run 
> As Administrator", so I'd really like to know if you have an idea to let us 
> give a better UI experience....
>
> Thanks in advance...
> Bests,
>
> Raphaël
>
>
> Re: [WiX-users] Bootstrapper manifest
> From: Rob Mensching <rob@ro...> -       2013-01-08 15:19
> I don't understand why you can't put the operations that modify the machine 
> in a package in the Chain. You say you have to do it in the BA but not why.
>
>
> On Tue, Jan 8, 2013 at 6:41 AM, Raphael DUCOM <rducom@...> wrote:
>
> Rob, that's why I said : " I'm working on a boostrapper which really needs 
> elevated privileges in order to completely install our solution. ( I know I 
> normally shouldn't do that, but we don't have choice because of the specific 
> components needed to be install ). "
>
> So, is there a way to alter / driver / update the Bundle manifest before 
> generation or once generated ? On just include a resource file into the 
> Bundle project (as in normal projects), in order to control the executable 
> manifest ?
>
> Please, I understood your point of view, and the fact you have to drive the 
> way people uses WiX, but we only have this option in order to manipulate the 
> elements we need to manipulate. We are in production environments, and using 
> really specific technologies, all is working fine except the fact we have to 
> put a message saying "you must run this "as administrator" because we have no 
> way at the moment to just modify the manifest of the generated bundle 
> executable...
>
> We just need to put a <requestedExecutionLevel  level="requireAdministrator" 
> uiAccess="false" /> into this manifest... In order to give a "normal" / 
> "usual" user experience... (think about nullsoft for example, I believe there 
> is no restriction at this level)
>
> Hoping you can drive us to a working workaround...
>
> Bests,
>
>
> --------------------------------
> Re: [WiX-users] Bootstrapper manifest
> From: Rob Mensching <r...@robmensching.com> - 2013-01-08 14:17
> Subject: Re: [WiX-users] Bootstrapper manifest
>
> Your BootstrapperApplication should not be modifying machine state at all.
> Machine state changes should be in "packages" (MSI, EXE, MSP, etc.) that are 
> listed in the Bundle/Chain element. Your BA can then control which packages 
> are installed.
>
>
> -----Message d'origine-----
> De : Raphael DUCOM
> Envoyé : mardi 8 janvier 2013 09:58
> À : wix-users@lists.sourceforge.net
> Objet : Re: Bootstrapper manifest
>
> Hi Rob,
>
> Many Thanks for your answer, but I believe I didn't give a good explanation...
> When you say "put stuff that modifies the machine in the Chain and elevate", 
> I think you mean "using a custom action which elevates" like <CustomAction 
> ....  Execute="deferred"  Impersonate="no" /> isn't it ?
>
> My scenario is different, I use the BootstrapperApplication class in order to 
> implement our custom installer, and lot of specific actions are implemented 
> inside our UI installer and not as CustomActions. This installer UI also 
> drives the installation of msi via the wix Engine.
>
> So I need a way to elevate the process which instantiate and run the 
> BootstrapperApplication class, not CustomAction. And for instance, I believe 
> the only way is to alter / update the bootstrapper exe manifest.
>
> Is there a way to do that ?
>
> Thanks in advance,
> Bests,
>
> Raphael DUCOM,
>
> --------------------------------
> Date: Mon, 7 Jan 2013 06:06:41 -0800
> From: Rob Mensching <r...@robmensching.com>
> Subject: Re: [WiX-users] Bootstrapper manifest
>
> Burn will elevate the install much the same way that the Windows Installer 
> elevates the install. Make sure you put all your stuff that modifies the 
> machine (aka: requires elevation) in the Chain and it will be elevated.
>
>
> On Mon, Jan 7, 2013 at 3:27 AM, Raphael DUCOM <rdu...@prodware.fr> wrote:
>
>> Hello,
>>
>> I'm working on a boostrapper wich really needs elevated privileges in
>> order to completly install our solution. (I know I normally should'nt
>> do that, but we don't have choice because of the specific components
>> needed to be install).
>> I'm searching a way to define a specific manifest file for a generated
>> bootstrapper executable.
>> I'm aware of the already answered forum posts (in 2011) :
>> -
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Manifest
>> -for-Burn-Bootstrapper-td6605859.html
>> -
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-how
>> -to-elevate-BA-Manifest-for-Burn-Bootstrapper-Continue-td6855345.html
>>
>> I have tried embed manifest with mt.exe with no success, same error as
>> the second post. (mt.exe : general error c101008c: Failed to read the
>> manifest from the resource of file "C:\ ..... 
>> MyInstall_1.0.107.41.exe.manifest".
>> The binary is not a valid Windows image.) I also have tried the
>> Elevate() function of BA, which doesn't elevate the context at all.
>>
>> But when looking in depth to my generated executable with Mitec EXE
>> Explorer, I found there is a manifest embed into it (you will fin dit
>> at the end of this mail)
>>
>> My question is :
>> - Is there a way to embed or define a manifest with more recent (3.7)
>> version of WiX while generating a Bundle EXE ? (with specific candle
>> or light parameters ?)
>> - Is it possible to alter or modify the manifest once the bundle
>> executable is generated ? (with mage.exe ?)
>> - Is there a workaround other than "no, you just don't have to elevate
>> privileges" ?
>>
>> Thanks in advance, we are really stuck on this...
>>
>> Bests,
>> Raphael DUCOM
>
> ________________________________
>
>
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to