Run .Net Installer Class not working on Windows 2008 R2

Got a problem you cannot solve? Try here.
adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Wed Jun 16, 2010 3:21 am

Hello,

I think I have found another bug in InstallAware 9.09...
The "Run .Net Installer Class" just doesn't work.

Code: Select all

Run .NET Installer Class $APP_SERVER_FILE$

where $APP_SERVER_FILE$ points to the correct file.

On Windows XP/2003 it works without problems.
On Windows 2008 R2 it just does nothing. No error is reported, no *.InstallLog file is created...

It's not related to the "administrator" rights - I have tried to run the installer as administrator and it still doesn't work.

Best regards,
Adam

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

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby MichaelNesmith » Wed Jun 16, 2010 4:13 am

Can you please send a project that installs just this class and reproduces the error successfully?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Wed Jun 16, 2010 5:50 am

Hello,

I'm attaching the sample installer project that is a modification of your "Creating IIS Websites and Virtual Folders".

The modification is really simple. At the beginning of the script I have put:

Code: Select all

Set Variable APP_SERVER_FILE to c:\server\MyServer.exe
Run .NET Installer Class $APP_SERVER_FILE$
Terminate Installation


I have also prepared a simple Windows Service in Visual Studio 2008 (the service does nothing).

How to use it?
1. Unzip the
Server.zip
A sample windows service
(2.64 KiB) Downloaded 1212 times
and put it to the c:\
2. Unzip the
Sample installer.zip
Compiled installer
(1.22 MiB) Downloaded 1134 times
or build the new one from the
New Project.zip
The sample project
(356.62 KiB) Downloaded 1038 times

3. Run the "New Project.exe"

On Windows XP/2003 the service is properly registered, the logs are created. On Windows 2008 R2 it is not...

Best regards,
adi

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

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby MichaelNesmith » Thu Jun 17, 2010 4:05 am

I have been unable to reproduce this issue.

Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\server\MyServer.exe assembly's progr
ess.
The file is located at c:\server\MyServer.InstallLog.
Installing assembly 'c:\server\MyServer.exe'.
Affected parameters are:
logtoconsole =
logfile = c:\server\MyServer.InstallLog
assemblypath = c:\server\MyServer.exe
Installing service MyServer...
Service MyServer has been successfully installed.
Creating EventLog source MyServer in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\server\MyServer.exe assembly's progr
ess.
The file is located at c:\server\MyServer.InstallLog.
Committing assembly 'c:\server\MyServer.exe'.
Affected parameters are:
logtoconsole =
logfile = c:\server\MyServer.InstallLog
assemblypath = c:\server\MyServer.exe

The Commit phase completed successfully.

The transacted install has completed.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Thu Jun 17, 2010 12:54 pm

Hello,

Thank you for the test. I was so surprised by your answer that in the beginning I didn't believe it and tried it on another machine... and it worked there.

We have 2 Windows 2008 R2 systems in the company.
1. Windows 2008 R2 ENG - here it doesn't work
2. Windows 2008 R2 DE - here it works!

Both systems are configured in the same way.

I'm not making it up. On the 2008 R2 ENG system it really doesn't work. I have tried everything including the main Administrator account.

Here is some evidence - I used the "Process Monitor" to check if the problem is caused by the missing rights.
Result on the working system (DE):
result on 2008 R2 DE.png
Proper behavior on the 2008 R2 DE system
result on 2008 R2 DE.png (193.63 KiB) Viewed 25169 times


Here is what I got on the not working system (ENG):
result on 2008 R2 ENG.png
Wrong behavior on the 2008 R2 ENG system
result on 2008 R2 ENG.png (57.25 KiB) Viewed 25169 times


It looks that the InstallAware is not proceeding with the installation, installutil.exe is not started at all.

I doubt that it has something to do with the language (DE/ENG versions). Something must be wrong, but what?
For now as a workaround I invoke the installutil.exe manually. And it works on both systems.

How to proceed now? Do you consider this as a bug?

Best regards,
adi

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

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby MichaelNesmith » Thu Jun 17, 2010 9:39 pm

I believe you! However, I was actually testing on an ENU (US English) system, and it worked fine.

Since you have said the setup is not starting on the errant system, why not log it and determine what is going wrong?

If we can triangulate a potential bug, we'll of course be happy to fix it :)
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Fri Jun 18, 2010 3:23 am

Thanks for the fast response.
I will provide the full installation logs on Monday.

Best regards,
adi

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Mon Jun 21, 2010 5:47 am

Hello,

The log seems to be empty on both systems. Is it because it doesn't reach the "Apply Install" phase?

Code: Select all

<InstallAware>
  <SetupSplash>
    <StubSize>
    </StubSize>
    <StubData>
    </StubData>
    <GlobalLists>
    </GlobalLists>
    <SupportDir>
    </SupportDir>
    <ExtractArchive>
    </ExtractArchive>
    <ExtractResource>
    </ExtractResource>
    <ResourcePath>
    </ResourcePath>
    <Dialogs>
    </Dialogs>
  </SetupSplash>
  <RunScript>
    <Variables>
    </Variables>
    <CompileScript>
    </CompileScript>
    <BootStrap>
    </BootStrap>
    <myah>
    </myah>
    <ExitScript>
    </ExitScript>
  </RunScript>
  <Free>
  </Free>
  <CachedSupportDir>
  </CachedSupportDir>
</InstallAware>


What to do now?

Best regards,
adi

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

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby MichaelNesmith » Mon Jun 21, 2010 2:02 pm

It actually looks like Apply Install is never getting called?
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Thu Jun 24, 2010 6:32 am

That would be right... I have provided a piece of code I use:

Code: Select all

Set Variable APP_SERVER_FILE to c:\server\MyServer.exe
Run .NET Installer Class $APP_SERVER_FILE$
Terminate Installation


After calling the "Run .NET Installer Class" the installation terminates.
If I understand correctly the "Run .NET Installer Class" is executed directly and doesn't require "Apply Install" am I right?
Will calling the "Apply Install" provide some more detailed logs?

Best regards,
adi

rasmusw
Posts: 44
Joined: Tue May 19, 2009 3:06 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby rasmusw » Tue Sep 21, 2010 12:19 pm

Did you ever find a solution to this problem?
I am experiencing the same thing. I have only tried on Windows 2008 R2 ENU, though.

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby mills » Tue Sep 21, 2010 9:19 pm

Would you be willing to post (or link to) the control you're trying to install to see if I can reproduce on our end with that?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

rasmusw
Posts: 44
Joined: Tue May 19, 2009 3:06 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby rasmusw » Wed Sep 22, 2010 1:56 am

Yes, I have attached a sample project which only registers the one assembly. There is also a log from an attempted installation and a process monitor log.
I noticed with Process Monitor, that the installer tries to locate the files

Code: Select all

C:\Users\rw\WINDOWS\Microsoft.NET\Framework\v4.0.30319\installutil.exe
C:\Users\rw\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installutil.exe
C:\Users\rw\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installutil.exe

Note the "c:\Users\rw" in front of the paths - that's my user's profile directory. If it had just been "c:\", then it would have found installutil.exe.
Attachments
installnetservice.zip
(4.28 MiB) Downloaded 1211 times

adi
Posts: 57
Joined: Mon Mar 22, 2010 8:28 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby adi » Wed Sep 22, 2010 6:24 am

rasmusw wrote:Did you ever find a solution to this problem?
I am experiencing the same thing. I have only tried on Windows 2008 R2 ENU, though.


Hello,

I didn't find the solution. Instead I'm using a workaround and calling the installutil.exe directly.
I see that you have found more than I. It looks like some paths problem. I hope that IA team can now reproduce and fix the problem.

Best regards,
adi

rasmusw
Posts: 44
Joined: Tue May 19, 2009 3:06 am

Re: Run .Net Installer Class not working on Windows 2008 R2

Postby rasmusw » Wed Sep 22, 2010 6:26 am

Hi adi.
Thank you for your suggestion to call installutil directly.
Can you tell me whether you autodetect the location of installutil.exe, or do you use a fixed path for it?
If you autodetect it, how do you do that?


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 85 guests