If the situation is simply that you have HKLM registry entries being
created from the MSI file and you are in fact a limited user then you're
stuck, and Vista's got nothing to do with it. A limited user cannot
change secure areas of the system (on any OS) by just installing an MSI
file. 
 
If the Vista situation is that you do in fact have administrator rights
but you are running as a limited user because of UAC then there are ways
to get elevation to admin rights to perform the installation.  Your
original post says that on Vista "administrative privileges are disabled
for the standard user", but standard users don't have administrator
privileges on any OS, so your assumptions about what Vista is doing
might be incorrect. You haven't posted enough information to diagnose
this case if you are in fact an administrator and UAC is really having
an effect. Unfortunately you're just repeating the message "my setup
can't write to HKLM" and not saying anything about whether the user
doing the setup has admin rights, whether custom actions are involved,
or posting the relevant section of the log file. It would also be useful
to know if the exact same setup works on an XPSP2 system. 
 
The manifest goes into an executable (not the installation) that will
launch your MSI setup, and because it demands administrator rights it
will ask for an administrator to run it or ask you to elevate it if you
are an administrator running limited. 
 
The thing to remember here is that MSI setups don't subvert security and
that if you don't have the rights to update secure areas of the system
then you can't do the install without some kind of administrator
intervention. 

Phil Wilson 


________________________________

From: Pallavi Patrutkar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 1:44 AM
To: Wilson, Phil; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Installation on Windows Vista



Yes. You are right. I wanted to say, installer report an error and then
roll back the installation. I interpreted this from verbose log created
by MsiExec utility.

It gives an error while writing few registry values to
HKEY_LOCAL_MACHINE.

 

I have this manifest file ready. How my installer will know to read this
file? Is there any other procedure to follow? Is Windows Installer 4.0
is required in this case?

 

Thanks in advance.

 

Regards,

Pallavi.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wilson,
Phil
Sent: Monday, January 22, 2007 11:15 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Installation on Windows Vista

 

You'll have to be a bit more explicit. MSI setups don't throw exceptions
they report an error result and roll back. If you literally mean that an
exception is being thrown, that's an error I'd expect from code. I
suggest you install with logging enabled: 

 

msiexec /i <path to msi? /l*vx <path to a text log file> 

 

That should show dettails about the error.

 

It's a manifest, that's the key word, not metadata. Search on manifest,
requestedexecutionlevel. This is the interesting part that demands
administrator privilege at program start up:

 

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="requireAdministrator"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>

 

Phil Wilson 

________________________________

From: Pallavi Patrutkar [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 22, 2007 6:10 AM
To: Wilson, Phil
Cc: wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Installation on Windows Vista

Hi,

 

Sorry for answering late.

 

I am able to start MSI setup, but throws exception at the point where my
installation tries to write something to HKLM location and it is not a
custom action. It is a property.

 

My application does not have any metadata file. What all it needs to put
metadata file in installer? Or can I have a link that can guide me to
create and use such metadata file?

 

Thanks in advance.

 

Regards,

Pallavi.

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wilson,
Phil
Sent: Thursday, January 11, 2007 11:16 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Installation on Windows Vista

 

Does "it does not allow me to install" mean that it doesn't start the
MSI setup at all, or that it fails at some point, and if so, what's the
error? Are you using custom actions? 

 

And "my application requires these privileges" isn't anything to do with
the installation, unless you're assuming that the installation can
somehow authorize your application to run with administrator privileges.
That needs a manifest, as Tony mentioned. 

Phil Wilson 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pallavi
Patrutkar
Sent: Thursday, January 11, 2007 5:28 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Installation on Windows Vista

Hello,

 

I am trying to install my application on Windows Vista with UAC enabled.
But, it does not allow me install.

 

I read in one of the documents of Windows Vista that, when UAC is
enabled, administrative privileges are disabled for the user (Standard
user). These privileges include granting KEY_WRITE privilege for writing
to HKEY_LOCAL_MACHINE and SE_DEBUG_PRIVILEGE.

 

But my application requires both these privileges.

 

So, in this case, how can I install my application on Windows Vista,
with UAC enabled?

 

Thank you,

 

Regards,

Pallavi.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to