eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Installation 32 bit && 64 bit

Hello,

I want my installation will support 32 bit and 64 bit .
I do not know how to do it , and what is the right way to do it.
I attached my installation file , it is complicated installation with update mechanism .
It important to me that it will be one msi file.
Please take a look the aip file, and tell me what to do.
It is java product.

Regards
Eitan Elmalam
Attachments
BeyondXML.aip
(191.61 KiB) Downloaded 432 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation 32 bit && 64 bit

Hi Eitan,

I'm afraid you cannot create a mixed 32/64-bit MSI package. The limitation is in Windows Installer. The mixed package feature is offered by our EXE bootstrapper. It detects the target platform and automatically configures the internal MSI package.

The EXE file built by Advanced Installer is a 32 bit one, this contains the x86 and x64 MSI files as well as the files to be installed from the CAB. When launched the EXE checks for the OS architecture and it launches the correct MSI.

In order to implement the mixed package, you can select the Mixed 32/64-bit matching the platform option for the package type.
This package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems. It allows you to have a single installation package that will install on both platform types (32-bit and 64-bit platforms) and can install files or registry in the real system paths regardless of the platform.

When the "Mixed 32/64-bit matching the platform" package type is selected in the Install Parameters page, then the wizard will launch and will guide you step by step through every stage required to organize your “Mixed 32/64-bit matching the platform” package

However, if you need an .MSI package type, the approach in this case is to duplicate your current .MSI build in the Configuration tab from the Media page. This will create a new build with exactly the same settings and content. Content means: prerequisites, features, searches, launch conditions.

Then, you can go in the Install Parameters page and set for the builds from the Build list toolbar button, the corresponding package type. e.g for one build set the package type as a 32-bit package and for the other build set the package type as a 64-bit package.
You can also take a look on the One project file - different Installer for 32bit and 64b forum thread which debates a similar subject.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello

I create build for 32 bit package msi and build for 62 build package msi .
Now I try to run the build and get the error.

Checking builds status... done.
Build required.

[ DefaultBuild32 ]
Building package (en): C:\Users\user\Desktop\BEYOND_XML_1.0.0\32bit\BeyondXML.exe
Preparing files... done.
Signing files from project... error.
The digital signing of some files failed. Error Message:Done Adding Additional Store

Number of errors: 21
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\jabswitch.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\javaws.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\jp2launcher.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\javaw.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\ktab.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\BeyondXMLUpdater.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\policytool.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\rmiregistry.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\servertool.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\ssvagent.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\tnameserv.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\keytool.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\java-rmi.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\klist.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\javacpl.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\orbd.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\rmid.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\java.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\kinit.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\unpack200.exe
SignTool Error: The signer's certificate is not valid for signing.
SignTool Error: An error occurred while attempting to sign: APPDIR\jre64\bin\pack200.exe

Build finished because an error was encountered.

What is the problem ?
I attached the aip file.

Thanks
Attachments
BeyondXML.aip
(192.45 KiB) Downloaded 498 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation 32 bit && 64 bit

Hi Eitan,

As you can see from the error, the certificate is not valid for signing (the problem is not in the .AIP, the problem is with the certificate):
SignTool Error: The signer's certificate is not valid for signing.
So, can you please make sure you are using a valid certificate for signing the installer and see if the behaviour still persist?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello,

The certificate is fine , I always sign with the certificate, the problem started when I create
two build one for 32 bit and one for 64 bit.
I can send you the certificate file, if you want tell me and I will send you.
Please assist ASAP.


Thanks
Eitan Elmalam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation 32 bit && 64 bit

Hi Eitan,

Unfortunately, I cannot replicate the described behaviour. I've successfully build your project having the DigitalSignature enabled.

In order to further investigate this, can you please send us the certificate file on email to support at advancedinstaller dot com so we can further investigate this?

By the way, can you please tell us if the error can be encountered when creating a new project? Does the error persist when enabling the digital signature?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello,

I sent you in email the certificate file.
I think if we disable the digital certificate the error is not exist.
Please check with the certificate file

Thanks
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello,

The problem solved, the certificate file was not valid , I fixed it and now is OK.
I have other problem, now I have two files installation, one for 32 bit and one for 64 bit.
I have two builds for it.
But when I try to install on 32 bit machine, the installation finished successful but
when I press on the icon in the desktop I get error that the image file BeondXML.exe is not matching to this type of machine.
The icon is ico file, what can be the problem in image icon ico, and how I can solved it ?
I attached the ico image file.
Please change the sofix to ico.

Thanks
Eitan Elmalam
Attachments
BeyondXMLold - Copy.ico.txt
(1.12 KiB) Downloaded 714 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation 32 bit && 64 bit

Hi Eitan,
But when I try to install on 32 bit machine, the installation finished successful but when I press on the icon in the desktop I get error that the image file BeondXML.exe is not matching to this type of machine.
The icon is ico file, what can be the problem in image icon ico, and how I can solved it ?
This is not related with the .ico file.
I have a hunch that you have added, by mistake the x64 build of your application in the 32-bit installation package.
However, in order to be sure that this is your case, can you please attach a print screen with the encountered error?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello,

I think you right but I want to check it ,
I can not choose for every build other platform so how I can put 32 bit application for 32 bit package
and 64 bit application to 64 bit platform ?
Add screen show.
When I choose in the dropdown anyCPU32/64 it is create a hugu msi file , why ?

Thanks
Attachments
platforme.png
platforme.png (220.81 KiB) Viewed 9590 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation 32 bit && 64 bit

Hi Eitan,

Since you have one version for the 32bit and another one for the 64bit of your application, you should create two java products in the Java page. Set the Platform accordingly for each version. Then, include the corresponding java product in corresponding build from Advanced Installer.

So, in the Java page, please use the New Synced Product context option. See the attached image for your reference:
NewSyncedProduct.png
NewSyncedProduct.png (7.58 KiB) Viewed 9583 times
This will create a new identical child product which will automatically inherit its settings from that point forward. Decollapsing the parent product will reveal the newly created child. Set the child platform to 64-bit.

Please note that in the Organization page, for each Java product a component has been assigned. Create a new feature for each component. In the Build section from the feature properties, please add each feature to the corresponding build from Advanced Installer. Use the attached image for your reference:
FeatureBuildSettings.png
FeatureBuildSettings.png (19.84 KiB) Viewed 9583 times
You can also take a look on the Multiple Build Configurations article which will guide you in creating a project with multiple build configurations.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eitanElmalam
Posts: 29
Joined: Wed Jul 30, 2014 12:02 pm

Re: Installation 32 bit && 64 bit

Hello,

Guys I am not sure I know how to do it, it is too complicate the explanation.
I need your guide.
Please can we talk and share screen , I can call.
I need to do it with you together.

Thanks

Return to “Common Problems”