cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eladef
Level 7

prerequisite are skipped when running the setup for the first time

Hi

I'm using basic MSI project in ISH 2010
My setup include a .net 3.5 SP1 prerequisite which works great except for two machines
When I run the setup.exe for the first it skip the prerequisite part and directly display the Install Welcome dialog, than if I cancel the setup and run it again the prerequisite dialog is displayed with .net 3.5 SP1.

The problematic machines are regular Win XP 32bit with windows installer 4.5 installed and it's services looks OK.
Any idea what can cause this problem ?

Elad
Labels (1)
0 Kudos
(8) Replies
Holger_G
Level 10

Maybe a Setup.exe log file gives some information.

setup.exe /debuglog
0 Kudos
eladef
Level 7

At the point the prerequisite part is running the MSI log is not running yet
I also tried this: setup.exe /v"/l*vx \"C:\Log.log\""
same results.

( I have a basic MSI project. )
0 Kudos
Holger_G
Level 10

Do you talk about a prerequisite or feature prerequisite?
You can generate seperate log files, one for Setup.exe and one for the MSI installation. Just launch Setup.exe with the /debuglog parameter. Setup.exe creates a InstallShield.log file in the same folder.
0 Kudos
eladef
Level 7

Hi

I have run the setup.exe with the parameter you suggested but it didn't really helped me to find the problem

When running the setup for the first time: I see this in the log file

2-11-2010[12:12:45 PM]: Skipping prerequisite 'Windows Installer 4.5 for Windows Server 2003 and XP (x64).prq' because it was installed before the reboot
2-11-2010[12:12:45 PM]: Checking setup prerequisite 'Microsoft .NET Framework 3.5 SP1.prq'
2-11-2010[12:12:45 PM]: Prerequisite 'Microsoft .NET Framework 3.5 SP1.prq' scheduled before feature selection
2-11-2010[12:12:45 PM]: Extracting 'Microsoft .NET Framework 3.5 SP1.prq' to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\{AE0DF595-3EA1-47EF-960C-6DA5E48F9A78}\Microsoft .NET Framework 3.5 SP1.prq
2-11-2010[12:12:45 PM]: PrereqEngine: condition,2,2,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5,SP,,1 -- Successful
2-11-2010[12:12:45 PM]: PrereqEngine: operatingsystemcondition,2, -- Successful
2-11-2010[12:12:45 PM]: PrereqEngine: file,AD29C3DEC8FB0CFDAFE8548371B0EE6D,\SetupPrerequisites\Microsoft .net\3.5 SP1\Full\Helper.exe,http://saturn.installshield.com/devstudio/setuprequirements/Microsoft .net/3.5/Helper.exe,,, -- Successful,
2-11-2010[12:12:45 PM]: PrereqEngine: file,D481CDA2625D9DD2731A00F482484D86,\SetupPrerequisites\Microsoft .net\3.5 SP1\Full\dotnetfx35.exe,http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe,,, -- Successful,
2-11-2010[12:12:45 PM]: PrereqEngine: execute,Helper.exe,/p dotnetfx35.exe /l 1033 /v "/q /norestart",/p dotnetfx35.exe /l 1033 /v "/q /norestart",1641,3010,, -- Successful
2-11-2010[12:12:46 PM]: PrereqEngine: Id,{074EE22F-2485-4FED-83D1-AAC36C3D9ED0},http://saturn.installshield.com/is/prerequisites/microsoft .net framework 3.5 sp1.prq, -- Successful
2-11-2010[12:12:46 PM]: PrereqEngine: behavior,Optional,,Reboot,4,Failure,
2-11-2010[12:12:46 PM]: PrereqEngine: Lua,
2-11-2010[12:12:46 PM]: PrereqEngine: Hidden,
2-11-2010[12:12:46 PM]: PrereqEngine: MsiProgress,
2-11-2010[12:12:46 PM]: Skipping prerequisite 'Microsoft .NET Framework 3.5 SP1.prq' because it was installed before the reboot
2-11-2010[12:12:46 PM]: Checking setup prerequisite 'MSXML 6.0 SP1.prq'


When running it for second time this line is omitted.
"Skipping prerequisite 'Microsoft .NET Framework 3.5 SP1.prq' because it was installed before the reboot"
0 Kudos
Christopher_Pai
Level 16

0 Kudos
Tim_Mayert
Level 9

Since my Prerequisites are also not installed when I have them associated with a Feature I also tried with the /debuglog parameter and I get the following:

7-5-2011[06:18:14 AM]: Running setup prerequisites ()...
7-5-2011[06:18:14 AM]: Checking setup prerequisite 'JRE_6_Update_20_x64.prq'
7-5-2011[06:18:14 AM]: Features do not match for prerequisite 'JRE_6_Update_20_x64.prq'
7-5-2011[06:18:14 AM]: Checking setup prerequisite 'Apache_Tomcat_6.0.26.prq'
7-5-2011[06:18:14 AM]: Features do not match for prerequisite 'Apache_Tomcat_6.0.26.prq'
7-5-2011[06:18:14 AM]: Checking setup prerequisite 'PostgreSQLPrequisite.prq'
7-5-2011[06:18:14 AM]: Features do not match for prerequisite 'PostgreSQLPrequisite.prq'

So what does this mean that the "Features do not match for prerequisite '...
I only have the one feature and it is always installed. So why do I get this message about it not matching????
0 Kudos
Tim_Mayert
Level 9

If I simply have the prerequisites installed "Install before feature selection" then they get installed fine, it is only if I set them to a feature that they will NOT be installed.

All I really need to happen is I need the user to be prompted the License agreement before the prerequisites are installed and if the user chooses not to accept the license then nothing gets installed, including the prerequisites.

So if I can not associate with a Feature then can have the license dialog box come up first before they are triggered to be installed?
0 Kudos
joebatngc
Level 2

Has this anomaly ever been solved? I am currently seeing this behavior with InstallShield 2012 Professional on a target Windows XP Pro SP2 clean machine (VM) with only .NET 2.0 SP2 installed.

My Basic MSI project selects the Microsoft .NET Framework 3.5 SP1 redistributable for installation. This redistributable has a default set of prerequisites that I have not edited. In addition, as far as conditional installation, the "Install before feature selection" option is checked (this was default selection).

When I run the setup.exe on a Windows XP Pro SP2 machine with no other version of .NET installed, the engine detects that the prerequisite conditions have been satisfied, and I get prompted with the following:


However, when I run the setup.exe on a Windows XP Pro SP2 machine with .NET 2.0 SP2 installed, I am not presented with this dialog, and the installer proceeds to the InstallShield wizard. But, this only happens the first time I invoke setup.exe. On subsequent invocations, I am prompted to install .NET Framework 3.5 SP1, as expected.
0 Kudos