VISTA and \"Run Program\"

Got a problem you cannot solve? Try here.
Berte
Posts: 2
Joined: Fri May 18, 2007 9:31 am

VISTA and \"Run Program\"

Postby Berte » Fri May 18, 2007 9:45 am

Hello,

I have the following situation trying to install our program under Windows VISTA:

I'am installing a .NET assembly with its .config file under the $TARGETDIR$ directory which is "C:\\Program Files\\Company\\Product\\".

After that I want to change entries in the installed .config file. I do this by calling .NETs "installutil.exe" with several parameters with the installed .NET assembly which implements a .NET Installer class. (I use directly the installutil tool, as IAs "Run .NET Installer Class" seems not to support providing parameters to the Installer class).

Now the problem is that even if I start the setup with "Run as administrator", I do always get an error from the installutil tool (I don't know excatly what error, as no logfile will be written). As this works under Windows XP, I assume that this is a problem of missing administrator previladges when running the external installutil tool.

Is there a way to get this to work, or is there a better way to change entries in .NET assemblies .config files during IA setup?

Thx in advance,
Berte

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue May 22, 2007 6:33 pm

Your setup should automatically elevate under Vista, so I'm at a loss to understand this phenomenon.

Might Read from Text File and Write to Text File work better for you?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Berte
Posts: 2
Joined: Fri May 18, 2007 9:31 am

Postby Berte » Fri Jun 08, 2007 3:36 am

The setup elevates under Vista. The problem is that the program (which is InstallUtil) does not. So InstallUtil is unable to write it's InstallState file into the $TARGETDIR$ directory.


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 115 guests