Windows 7 problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ranitjs
Posts: 3
Joined: Tue Jun 22, 2010 9:04 am

Windows 7 problem

hi,
i am having problems with advanced installer when running the executable on windows 7. i have advanced installer 7.3.1 , and we are working on java project installation, everything is OK with windows xp and other versions, only windows 7 is not working, when running the application it fails to run even if we are in an admin account on windows 7, if we run the installation as "run as administrator" everything goes ok.

i know it is a security issue in windows 7, but we are required to user per machine locations. i read this topic:

http://www.advancedinstaller.com/forums ... =2&t=10805

and this
http://msdn.microsoft.com/en-us/library/bb756929.aspx

i know that i need a manifest file maybe, but i don't know how to do it for a java project and where to put the manifest file. also the second link above does not tell how to do ti for java, it explains it for visual studio applications and so on.

so please if you can provide me with some help, to solve the problem.

Regards
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Windows 7 problem

Hello,

On the Java Products page, select your product then set the Execution Level field to "Require Administrator". That should properly prompt for elevation. Rebuild your project, install and test.

Let me know if this fixed the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ranitjs
Posts: 3
Joined: Tue Jun 22, 2010 9:04 am

Re: Windows 7 problem

hi Gabriel,
thank you for your fast reply,
however, i think i ask the question in a wrong way. i did not mean that i want to execute a java product. i meant that the whole advance installer project is java !!
the whole point is that the whole installation package generated by advanced installer after build, is not working because of some vbs scripts that use a per machine locations.

could you advice me what to do in this case?

Regards
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Windows 7 problem

Hello,

Script custom actions that require administrator privileges to access resources should be have the "with no impersonation" option set from the Custom Actions page. This will enable your script to run as the local SYSTEM account, with full privileges.

I hope this helps.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ranitjs
Posts: 3
Joined: Tue Jun 22, 2010 9:04 am

Re: Windows 7 problem

hi Gabriel again,
thank you for your reply.

i think this is that is the solution, i read about it somewhere else, how ever, when i go to my custom action scripts, i find all the execution options are grayed and i cant modify them at all. they are all set to immediate execution.

how could i make them work. i attached a snapshot of what i am speaking about. and the selected custom script is the one i want to make "with no impersonation"

Regards
Attachments
New Bitmap Image.jpg
New Bitmap Image.jpg (182.41 KiB) Viewed 3475 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Windows 7 problem

Hello,

The options are grayed out because you have placed the custom actions that are supposed to do the installation under the ProgressDlg in InstallUISequence. I believe they belong under InstallExecuteSequence, under "Install".

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”