This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Agreed
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2011
10:40 AM
Executing IA from Another Application
Recently, I created an update application that will download updated versions of an application, if one exists, and attempts to execute it. I was planning on having the update application download an IA project that will overlay the new files over the old files silently (hence, both the update application and the application being updated will both be terminated and I can update both)
The issue I am having is that anytime I attempt to run the new IA installer (in this case Install.exe) I keep getting the following error:
Error starting application: Cannot run program "install.exe": CreateProcess error=740, The requested operation requires elevation
This error happens when I run the following line of code:
Runtime.getRuntime().exec(INSTALL_FILE);
Where INSTALL_FILE is just a constant for install.exe.
Has anyone seen this error before and/or have any suggestions? I am running this under Windows 7 and I am starting to this it is a security issue. When I attempt to run it manually I get "User Account Control" dialog asking if I want to allow a program from an unknown publisher to make changes to my computer.
Thanks!
The issue I am having is that anytime I attempt to run the new IA installer (in this case Install.exe) I keep getting the following error:
Error starting application: Cannot run program "install.exe": CreateProcess error=740, The requested operation requires elevation
This error happens when I run the following line of code:
Runtime.getRuntime().exec(INSTALL_FILE);
Where INSTALL_FILE is just a constant for install.exe.
Has anyone seen this error before and/or have any suggestions? I am running this under Windows 7 and I am starting to this it is a security issue. When I attempt to run it manually I get "User Account Control" dialog asking if I want to allow a program from an unknown publisher to make changes to my computer.
Thanks!
(3) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2011
01:12 PM
I have managed to get the application to start with the following code change:
String[] cmd = new String[]{"cmd.exe", "/c", INSTALL_FILE};
Runtime.getRuntime().exec(cmd);
Again, INSTALL_FILE is just a constant for "install.exe".
Unfortunately, it still brings up the "User Account Control" dialog even though this was suppose to update files silently.
I am guessing that we will somehow have to sign the install.exe file so that it recognize that the file is from a friendly source but I am not sure how to do it yet.
Note: This will only happen in Windows 7 and Vista as of today.
String[] cmd = new String[]{"cmd.exe", "/c", INSTALL_FILE};
Runtime.getRuntime().exec(cmd);
Again, INSTALL_FILE is just a constant for "install.exe".
Unfortunately, it still brings up the "User Account Control" dialog even though this was suppose to update files silently.
I am guessing that we will somehow have to sign the install.exe file so that it recognize that the file is from a friendly source but I am not sure how to do it yet.
Note: This will only happen in Windows 7 and Vista as of today.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2011
03:40 AM
Most likely the IA installer has been defined in such a way that it asks for elevated privileges, so I'm afraid you might not be able to do anything about it, if you don't have control over it.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2011
12:56 PM
Thanks Vlad, I believe you are correct. For now I am just going to let it prompt the user and I may have to add a screen asking the user to select 'yes' when the the permissions dialog appears. Hopefully, our QA team is fine with that too.
-Kevin
-Kevin