John Golding
Posts: 3
Joined: Tue Mar 08, 2011 12:04 pm

Windows 7 64 bit Issue

I've a MSI I've built using 8.0.2 of Advanced Installer using a simple template.
I selected a 32 bit package type.

As expected this installs without problems on XP or Windows 7 32 bit.
On windows 7 64 bit it attempts to access a network share but since the test machine is isolated the installer fails.

On the 64 bit test machine, running the "Check Compatibility" option on the context menu for the MSI returns a dialog with the text "Windows compatibility mode: Skip Version Check".

Now I know that Advanced Installer includes options for creating 64 bit installers along the 32 bit installer but shouldn't a 32 bit installer just install into the x86 program files directory without me having to tweak any compatilibty settings?

The program I'm installing is 32 bit anyway - it seems odd to ship a 64 bit installer for a 32 bit program.

I can install the 32 bit package ok if I go through the "Check Compatibility Option" but I want to avoid this.
Thanks,
John
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows 7 64 bit Issue

Hi John,

The problem you are encountering could appear if by mistake you modified the default value of APPDIR, from Install Parameters page.
Here is an edit box called "Application Folder" which should be set by default to something like this:

Code: Select all

[ProgramFilesFolder][Manufacturer]\[ProductName]
Can you please check it. If this is set correctly please send us the aip file and a verbose log of the failing installation to support at advancedinstaller dot com so we can investigate this further more.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
John Golding
Posts: 3
Joined: Tue Mar 08, 2011 12:04 pm

Re: Windows 7 64 bit Issue

Hi Bogdan,

I've not changed the APPDIR at all - it is still the [ProgramFilesFolder][Manufacturer]\[ProductName] directory that it is by default.
I'm getting the verbose log file generated from msiexec and so I'll send you that along with the project file.

As a side issue - I've noticed a redirect issue with the "Public Documents" folder in XP - this seems to end up in
[ProgramFilesFolder][Manufacturer]\[ProductName]PublicDocumentsFolder rather then the "Documents and Settings\All Users\Documents" folder that I would expect.

Someone raised a question about this on the forums a couple of weeks ago - has this issue been resolved?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows 7 64 bit Issue

Hi John,
Just been told a bit more info – the issue only happens if the logged on user is a domain admin – otherwise the 32bit installer works without the compatibility issue.
The installer seems to fail because it cannot run a custom action that resolves some installation paths. The error code 1157 means "One of the library files needed to run this application cannot be found.".
You said that only logged it as a domain admin the problem appears. From what I know this type of account is used for Active Directory\GPO deployment, is this what your are trying to do?
As a side issue - I've noticed a redirect issue with the "Public Documents" folder in XP
This is caused by a bug in Advanced Installer, a fix has been issued and will be available in version 8.1 very soon.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
John Golding
Posts: 3
Joined: Tue Mar 08, 2011 12:04 pm

Re: Windows 7 64 bit Issue

Bogdan wrote:You said that only logged it as a domain admin the problem appears. From what I know this type of account is used for Active Directory\GPO deployment, is this what your are trying to do?
We aren't doing any deployment of the MSI through active directory, SSMS, Tivoli or any other deployment software/mechanism. We are just double clicking on the MSI when logged in as the domain admin so are doing exactly the same actions that an ordinary user may do to install the software.

John
ksmith93
Posts: 10
Joined: Wed Sep 13, 2006 5:14 pm

Re: Windows 7 64 bit Issue

Hello,

Has this bug been fixed? We are using AI 8.1.3, and when building a 64-bit MSI for Windows 7 x64 which requires Administrative privileges, it's as if UAC elevation is not functioning completely correctly. To work around the issue, we have created a C++ DLL which performs an IsAdministrator check, we then call that from a custom action from our AI project. We've noticed that when we use Windows 7 built in Check Compatibility function and allow it to Windows compatibility mode: Skip Version Check, then elevation works as expected and we do not have to use our IsAdministrator work around.

Our current workaround is this: Launch a command prompt as elevated, invoke our MSI from the the elevated command prompt. This allows our IsAdministrator check to pass, and installation proceeds correctly. If we do not launch the MSI from an elevated command prompt, our call to IsAdministrator fails, and then our MSI installation fails gracefully (by our design). This is our workaround for intentionally and graceful failure, for now.

We are installing a "driver", but that fact is really opaque to us -- it's a printer driver that we simply call upon one API to install, and the API requires administrative (elevated) privileges.

Thank you.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Windows 7 64 bit Issue

Hello,

The bug my colleague mentioned above is about the "Public Documents" folder not being properly resolved. This has been indeed fixed for version 8.1.

If you're not keen on using a .MSI then by enabling the bootstrapper( .EXE installer ) you can set it with the "Require Administrator" execution level from the Bootstrapper tab in the Media page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”