I need to be able to run a .exe file on a remote VM using Finalbuilder. I'm currently using PsExec, which I can get to run .msi files, but not .exe files. On a .exe file, here's what I'm trying:
Under Program file I have
msiexec
These are my parameters
/i C:\[filepath].exe INSTALLDIR=C:\[path] INSTALLMETHOD=silent
INSTALLALIAS=LIVE INSTALLREBOOTMETHOD=0 /qn /l*v C:\[log path].txt
Can PsExec not run .exe files, or is there an alternative to PsExec that works better?
Related
I need to run exe file on command prompt to pass some parameters and in the code of exe file i have run a bat file using VB.NET built-in shell method, but when run exe file on command prompt the shell method seems printed the entire code of the bat file out into cmd, this is not allowed.
Example:
Shell("any code and path to file", AppWinStyle.Hide)
Note: I have to run this bat file with shell method of VB.NET
I'm developed window application from node-webkit, and I make it to .exe file.
i try
copy /b nw.exe+myapp.nw
and i try to build use nw-builder but it same result.
To perform this .exe file, it need some files(nw.pak, some Dlls).
I want to excute this exe file standalone.
Please let me know any method to excute .exe file standalone
[UPDATE]
I solved this issue.
i found packaging program Enigma Vitual Box and this program help packaging .exe file, nw.pak and other files.
You can use Inno Script App to make an installer for the .exe file. I do use it and it makes sense.
I wish to put the following steps in a .exe file so that manual intervention is avoided and everything is automated. All the user needs to do is double click this .exe file.
Following are the steps which I wish to automate.
Open command prompt.
Go to desired folder location Eg. cd Desktop\Automation\
Run the command ruby xyz.rb
Thanks!
Abhishek
I'm trying to do bat file which replaces some dll files under program files\file...
I just can't find solution to do this. I have some win xp and windows 7 computers to run this bat and I'm using xcopy command.
My file copy command is working correctly if destination is something else than under program files.
Does somebody knows the solution for this, please?
Your batch file needs to run elevated. In older windows versions you can also use the runas command to run it as administrator.
I'm programming in VB using Visual Studio 2005 Professional.
I have a code munger perl script that generates some of the *.vb files that I want to compile. The script and the associated files are in my project directory, and when I run the script from the OS command prompt, it writes the files in the same directory, which is what I want.
Rather than do this, I want to invoke the perl script as a pre-build event. I've gotten it to work ... almost. The only issue now is that the files are now deposited in TargetDir (/bin/Release e.g.) instead of ProjectDir. I could just change TargetDir to be ProjectDir, but that seems like I'm asking for trouble.
Is there a way to separately specify the target directory for pre-build commands? Or change it to ProjectDir, then change it back after I'm done with the pre-build? Or maybe I just need to write a command that moves the files back where I want?
Thanks in advance!
You can simply prepend a cd command to your command:
cd ProjectDir
do_my_stuff
Your custom build step will be written out as a batch file by Visual Studio and run with cmd.exe, so cd commands will work just fine.