Unable to add registry value - Advanced Installer Community
jammy
Posts: 17
Joined: Mon Sep 08, 2014 7:44 am

Unable to add registry value

Hi ,

I have a strange problem. when i am launching an .exe from Dialogue>ExitDialogue> Launch an application it works perfectly fine. but when run my .exe file from custom actions run an exe file at the time install it does not add that registry value.

My .exe will add regestry values to the existing key (Microsoft Lync).

I want it to be run for sure not check box like launch an application. can u please help me do in right direction?

I am using Advanced Installer Professional Version 11.6.3

thank you ,
jammy
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Unable to add registry value

Hi Jammy,
when run my .exe file from custom actions run an exe file at the time install it does not add that registry value.
In order to have a better view about this, can you please send us the .AIP (project file) when launching your .EXE through the custom action and the verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jammy
Posts: 17
Joined: Mon Sep 08, 2014 7:44 am

Re: Unable to add registry value

Hi Dan,

Thank you very much for early reply. i deleted and created new project and the problem is gone now.

But some question though,
1)when .exe file has to run as administrator , it is popping a window where user has to click YES for that to install , can we do that without that message box by UAC?
2)I intalled a .msi file while testing generated by advanced installer now that msi file is not uninstalling saying "Fatal error occured during installation , contatct support team"
i tried to repair and restarting my system how should i remove that file any suggestions ??

P.s : Awesome software :)
Thanx,
Jammy
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Unable to add registry value

You're welcome Jammy,

Thank you for you kinds words.
1)when .exe file has to run as administrator , it is popping a window where user has to click YES for that to install , can we do that without that message box by UAC?
You cannot prevent the UAC dialog from appearing when you perform a per-machine installation. Only if you install a package per-user you can skip showing this dialog.
If you set the option "Run as administrator" you will inform UAC to show the dialog the moment you execute the installer.

If the UAC is off then it will not be any prompt to enter admin credentials.
If the UAC is off then the installation will be launched with the current log-on user right. If the log on user is a guest and the installer require administrator privileges then the installation will fail because it doesn't have sufficient privileges to complete this installation for all users of the machine.

You can take a look on the User Account Control article which may be useful to you.
2)I intalled a .msi file while testing generated by advanced installer now that msi file is not uninstalling saying "Fatal error occured during installation , contatct support team"
i tried to repair and restarting my system how should i remove that file any suggestions ??
Please take a look on the How do I remove a broken installation? article which may be useful to you.

Please note that it is highly recommended using virtual machine software, so you can easily reset the virtual machine to a known clean state (and also don't have to worry if your install breaks the machine).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”