How to use cmd.exe (Win7) from within Wise Inst. Studio 7.0
Updated: 06 Sep 2010 | 3 comments
This is another issue not covered well in the documentation and in spite of all my efforts it did not work.
I need to execute a file, "name_xxx.exe" in the command window.
In Execute command, I set the EXE Path: C:\windows\system32\cmd.exe
The executable parameters: /S /K "C:\eMPartDb\name_xxx.exe"
/S = string command
/K = keep the window open after execution
The command window opens but the file name_xxx.exe is not executed.
I tried different syntax, nothing worked.
I would appreciate any suggestions, thank you.
discussion Filed Under:
Comments
Do you need administrator
Do you need administrator permissions for your command line executable name_xxx.exe to run correctly? If you do, then running cmd.exe in this way will only provide regular user permissions, even if you are using the admin account.
Try it manually - if you just start cmd.exe from the run window and then run your EXE, does it fail also?
If so, close the cmd window, then from the All Programs/Accessories menu, locate CMD.EXE, right click on it, then choose "Run as Administrator". Now try running your EXE in this command window which is now running in Admin context. Does it work now?
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Yes, admin permissions are
Yes, admin permissions are required.
From what I can see, the DOS window opens with the title "Administrator:........name_xxx.exe" and this title changes immediately to just "Administrator:C:\directory" , inside the window there is only one prompt "C:\directoryName".
There is no sign that the required file was executed (name_xxx.exe) or not, or it failed.
I am logged in as administrator and the file name_xxx.exe is properly executed in a CMD window opened with "Run as Administrator".
What can be done in Wise to execute the file name_xxx.exe in a DOS window with admin rights?
If we install this file by using the standard Wise command "Execute Program" then Win7 complains of possible improper install although the file was installed just fine.
I am trying to eliminate this Win7 complain by installing in a DOS window.
Where are you sequencing your
Where are you sequencing your custom action?
Are you running the custom action in user or system context?
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.