Page 1 of 1

Package for both x86 & x64 dont work in x64

Posted: Thu Jun 16, 2011 2:51 am
by shanep
Hi there,
I am building a single package for x86 & x64.

I have this as my script.

Code: Select all

 
[DEFINE REGION: Check/Install Application Pre-Requisites]
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
 
<<Code Folding Region>>
Comment: Check setup pre-requisites
Set Variable PREREQ to FALSE
Set Variable PRELIST to 
[compiler if Variable BUILDMODE not Equals PATCH]
if Variable NEEDSUPGRADE Equals TRUE
  Set Variable PREREQ to TRUE
  Set Variable PRELIST to $PRELIST$$NEWLINE$Previous Version Uninstallation
end
Include Script: checkmsi31
if Variable ISWINDOWS64BIT Equals True
  Include Script: checksqlcompact4_x64
  Include Script: checknet4aip_x64
  else
  Include Script: checksqlcompact4
  Include Script: checknet4aip_x86
end
................
  if Variable ISWINDOWS64BIT Equals True
    [DEFINE WEB MEDIA Microsoft SQL Server Compact Edition 4.0 (x64)]
    Include Script: setupsqlcompact4_x64
    [DEFINE WEB MEDIA Microsoft .NET Framework 4 (x64)]
    Include Script: setupnet4aip_x64
    else
    [DEFINE WEB MEDIA Microsoft SQL Server Compact Edition 4.0]
    Include Script: setupsqlcompact4
    [DEFINE WEB MEDIA Microsoft .NET Framework 4]
    Include Script: setupnet4aip_x86
  end


The script works fine on a x86 enviroment however on a 64 bit it fails. I get an error
"SQL Server Compact x86 installation package is not supported on x64 Operating System, please try with SQL Server Compact x64 installation package."
Why does the 32bit install work however the 64bit fails?

Does anyone know what im doing wrong?

Thanks

Re: Package for both x86 & x64 dont work in x64

Posted: Thu Jun 16, 2011 7:30 am
by giaviv
Hey,

Looks like you are including the right scripts, therefore I am not sure why you are getting an x86 error message on x64.
Are you able to debug this step-by-step to see which scripts actually get included at runtime?

Re: Package for both x86 & x64 dont work in x64

Posted: Thu Jun 16, 2011 2:18 pm
by shanep
Im new to installaware so not really sure how the best way to debug is.

Do you mean debugging on the virtual machines im using for testing? or my local dev box?

Thank you

Re: Package for both x86 & x64 dont work in x64

Posted: Thu Jun 16, 2011 2:47 pm
by giaviv
Is your machine x64?
If so, use the Debug button on the top ribbon in the MSIcode tab (or the Step to walk the installation step-by-step).