Unable to run Bcdedit.exe in windows/system32 - 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!

catsini
Posts: 3
Joined: Sun Dec 20, 2009 11:11 am

Unable to run Bcdedit.exe in windows/system32

Hi,
In my 64bit installation, i have to run this script:
bcdedit /set testsigning on
(bcdedit.exe in folder windows/system32). This command will enable test mode in windows 7.

So i created a custom Action in : Installexecutesequence/install then add Lauch file or open URL. In Custom Action Properties :
Source path : <AI_CUSTACTS>viewer.exe
Source Type : Executale
Command Line : "[System_32_DIR]"\bcdedit.exe /set testsigning on
[System_32_DIR] is windows/system32 . Because of chosing 64bit packet type installation, it lacks of System32 in "Files and Folders" so i must create this folder by manual in Windows Volume/Windows.
Everything is ok after run installation(then restart windows) but Test mode in windows 7 is not enable ( it means that script above is not executed).
For testing, I type "bcdedit /set testsigning on" in search field of Start menu , it's ok (success enable test mode after restart PC).

Any helps or advices?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Unable to run Bcdedit.exe in windows/system32

Hello,

Please note that bcdedit.exe is found in Path environment variable regardless of the system's architecture . There is no need to provide the full path to it.
Also make sure bcdedit.exe is being run elevated.

The problem might also be caused by the file system redirection. Is your package marked as 64bit package in the Install Parameters page in Advanced Installer?

If you still can not troubleshoot the issue, please send your .aip project file and an install log to support at advancedinstaller dot com so we can further investigate the problem.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
catsini
Posts: 3
Joined: Sun Dec 20, 2009 11:11 am

Re: Unable to run Bcdedit.exe in windows/system32

GabrielBarbu wrote:Hello,

Please note that bcdedit.exe is found in Path environment variable regardless of the system's architecture . There is no need to provide the full path to it.
Also make sure bcdedit.exe is being run elevated.

The problem might also be caused by the file system redirection. Is your package marked as 64bit package in the Install Parameters page in Advanced Installer?

If you still can not troubleshoot the issue, please send your .aip project file and an install log to support at advancedinstaller dot com so we can further investigate the problem.

Best regards,
Gabriel
Yes ,i marked my package as 64bit package. But i try to add bcdedit.exe( i copied it from system32 folder to another folder on harddisk because AI can't see directly this file for adding) to a folder in "Application Folder" (in Files and Folders) then use file path
"[#bcdedit.exe]" /set testsigning on
then everything seem be ok :?: .
I don't know why but i'll try install this package on an other PC for testing.

You said : "Also make sure bcdedit.exe is being run elevated." but how to do that ?
Thanks you very much for your help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Unable to run Bcdedit.exe in windows/system32

Hello,

Did you try running bcdedit.exe in the custom action without providing the full path?

As for the bcdedit.exe, it is probably already running elevated if you placed it in the InstallExecuteSequence, since the installer prompts you for elevation.
If you still can not troubleshoot the issue, please send your .aip project file and an install log to support at advancedinstaller dot com so we can further investigate the problem.

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

Return to “Common Problems”