View Full Version : Problems running .msi
simdave
05-20-2006, 07:57 AM
Hi im still pretty new to APMS, but ive managed to put together a AIO application suite for work. Im having a problem running a msi file..ive used the following cmd..
File.Run("G:\\Auto Play Media Studio\\Tool Kit 1.0\\CD_Root\\AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);
And it wont run, this is the only msi file on the disk that im making but i need it to work as this is one of the main applications we install at work.
Anyone know if im doing anything wrong?
Wonderboy
05-20-2006, 05:56 PM
Try this:yes
File.Run(_SourceFolder.."\\AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);
simdave
05-21-2006, 08:53 AM
Sorry the actual code i used is this:
File.Run("AutoPlay\\Software\\Novell clients\\ZEN AGENT\\ZfDAgent.msi", "", "", SW_SHOWNORMAL, false);
Which is exacly the same code as ive been using to run other application exe's with no problems. the only problem im having is not being able to run this msi file :huh
The msi does work because ive maualy ran it.
Intrigued
05-21-2006, 10:55 AM
Look into using the Shell.Execute(strFileName, "open", "", "", SW_SHOWNORMAL) Action.
simdave
05-22-2006, 04:27 AM
Thank you, that command worked :D
The only other problem im having is running a .bat file from a certain directory. 1 of the batch files has been wrote to import certain registry entries for the configuration of the Novell client, it basically points the Novell client to right context within the Netware servers.
The other one is for the installation of Swift.
ive tried to run the batch files with the File.Run command, but it doesn’t appear to be working, the cmd box does come up but as far as it importing the registry files it doest work. ive looked through the cmds and all seems to be ok.
Is the File.Run command the correct line for running batch files?
Wonderboy
05-22-2006, 07:35 AM
File.Run(_SystemFolder.."\\CMD.exe","Command");
simdave
05-22-2006, 12:49 PM
File.Run("AutoPlay\\Software\\Novell clients\\CXLogin\\winnt.bat", "", "", SW_SHOWNORMAL, false);
Thats the code i used above
So wait, ive got to use that code to run the cmd prompt and then run the batch file? hmm im lost
Wonderboy
05-22-2006, 01:24 PM
not if you use a batchfile, but please post the command you are trying to execute in your bat, and it will be much easier for use to help you,
or try renaming you bat file that you are trying to run to winnt.cmd insted of
winnt.bat. try that out, and if it dont work, please post the batfile, and we may be able to help you allot better.:yes
simdave
05-22-2006, 02:10 PM
Ok i will try that :)
Thank you
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.