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
- :
- Problem with Execute Command
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
12:55 AM
Problem with Execute Command
I met this problem when executing command in windows environment.
When I execute the command "$path$\setup.exe"by cmd in windows, it can run well. But when I execute the same command by IA "Execute Command", some errors occur.
So I wonder that:
1, what is the difference between run command directly in windows and run it by IA?
2, If the current user is admin, does it has the admin authority too when using "Execute Command"? Because I find it failed to write file under windows\system32 folders.
Thanks!
When I execute the command "$path$\setup.exe"by cmd in windows, it can run well. But when I execute the same command by IA "Execute Command", some errors occur.
So I wonder that:
1, what is the difference between run command directly in windows and run it by IA?
2, If the current user is admin, does it has the admin authority too when using "Execute Command"? Because I find it failed to write file under windows\system32 folders.
Thanks!
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
01:20 AM
try $path$$\$setup.exe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
01:21 AM
i guess i might not work.. bcoz IA thinks $path$ is a IAVariable.. not windows :confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
03:15 AM
I'm sorry that "$path$" may lead to a mis-understanding. I only use this as a symbol for the path, not actual type this in the project.
"IA Execute Command" action can start setup.exe. During silent installation, some problems occured which do not occur when directly enter the command in cmd.
One of them is that new ports info should have been written into file "C:\WINDOWS\system32\drivers\etc\service", but not.
So I wonder whether IA has the authority to access to system folders while running "execute command"
"IA Execute Command" action can start setup.exe. During silent installation, some problems occured which do not occur when directly enter the command in cmd.
One of them is that new ports info should have been written into file "C:\WINDOWS\system32\drivers\etc\service", but not.
So I wonder whether IA has the authority to access to system folders while running "execute command"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 22, 2008
12:59 AM
I don't really understand from your post what are you trying to do,
but try putting: CMD /C in the begging of each command line.
for example, if you want to copy a file from c: to your install dir, the command should look like:
CMD /C copy c:\anyfile.any suffix $USER_INSTALL_DIR$
but try putting: CMD /C in the begging of each command line.
for example, if you want to copy a file from c: to your install dir, the command should look like:
CMD /C copy c:\anyfile.any suffix $USER_INSTALL_DIR$
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 13, 2008
12:47 AM
I WANT TO RUN A .EXE WHICH IS PUT DURING INSTALLATION:
I AM DOING
$USER_INSTALL_DIR$$\$xyz.exe arg1
it not working 😞
i even tried
CMD \C $USER_INSTALL_DIR$$\$xyz.exe arg1
still not 😞 😞
help
I AM DOING
$USER_INSTALL_DIR$$\$xyz.exe arg1
it not working 😞
i even tried
CMD \C $USER_INSTALL_DIR$$\$xyz.exe arg1
still not 😞 😞
help