my2001 Posted September 15, 2004 Share Posted September 15, 2004 I thought WIHU could start msi files on it's own without a "msiexec /i msifile.msi" at the command line. But I'm facing problems when I try to install .NET Framework for example. I have to use msiexec /i on command line to get it working. Is this intended?My install.ini says (example not working):(...) DESCRIPTION.0.0=.NET Framework 1.1 inkl. deutschem Sprachpaket & SP1 command.0.0=netfx.msi /qr workdir.0.0=InstCD\Komp\NetFramework\ selected.0.0=0 hidden.0.0=0(...) Link to comment Share on other sites More sharing options...
C.RAZY Posted September 16, 2004 Share Posted September 16, 2004 Hi, my2001!Perhaps it's the same problem like mine, see here...(which was a forgotten cmd.exe /c, but on the other hand, perhaps *every* command with a workdir.x directive has to get started by another process (be it cmd.exe or msiexec.exe)?For your exact problem, I did a self extracting winrar archive (set to extract to a temporary folder and run the setup afterwards), it saved some space on the CD does your example work with(...) DESCRIPTION.0.0=.NET Framework 1.1 inkl. deutschem Sprachpaket & SP1 command.0.0=cmd.exe /c netfx.msi /qr workdir.0.0=InstCD\Komp\NetFramework\ selected.0.0=0 hidden.0.0=0(...)?Simpler question, does the workdir.x directive work *without* starting cmd.exe (or msiexec.exe)? And, if not, why not?TIA,C.RAZY Link to comment Share on other sites More sharing options...
my2001 Posted September 16, 2004 Author Share Posted September 16, 2004 Simpler question, does the workdir.x directive work *without* starting cmd.exe (or msiexec.exe)? And, if not, why not?Yes, by all means! workdir.x directive does work independendly of using which command ever. It just tells its related command.x-program in which directory the latter one should search for probably needed files such as configuration files or something like this. maybe also interesting: posting in another WIHU-forum thread Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted September 16, 2004 Share Posted September 16, 2004 Let me clarify: workdir.x will only set current working directory during execution of the specified command, NOT before.Benjamin Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted September 18, 2004 Share Posted September 18, 2004 So I implemented registry shell\open\command execution as I said. command.x will be checked against registry if command is found there it will be used and each %1 ... %x placeholder in registry HKCR\<key>\shell\open\command will be replaced by corresponding specified arguments.for example you'll find following command for .exe files in registry:HKEY_CLASSES_ROOT\exefile\shell\open\command"%1" %*So if you would create a command.0 = test.exe 1 2 3this will be replaced by "test.exe" 1 2 3Inexplicably the command for .cmd and .bat files are the same which mean it should be executable directly too, which isn't the case during windows installation as I tested it once. So it is better to still use cmd.exe /c here.Benjamin Link to comment Share on other sites More sharing options...
WotC Posted May 23, 2005 Share Posted May 23, 2005 I had a quick look in the forum but couldn't find anything regarding the following problem. How do i send a command likecommand.0 = %wihu%\dotnetfx.exe /q /c:"install /q"Whenever i want to executea command using " i get an error :-(.is a cmd /c enough? can't try it here but will as soon as possible! or can i escape the " using \ in front of it?thanks in advanceedit: strange - i gave it a try using another computer and it worked?!? the only difference was i omitted the workdir path...edit2: even stranger:command.0 = %wihu%\BestCrypt\bcrypt7.exe -S -G "Security\Bestcrypt"doesn't work!!!Anyone any ideas? Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted May 25, 2005 Share Posted May 25, 2005 What error did you get?Is the path in second example correct? is "BestCrypt" really a sub directory of WIHU executable directory? Link to comment Share on other sites More sharing options...
WotC Posted May 26, 2005 Share Posted May 26, 2005 Something like "BestCrypt 7.12" terminated with code_1.Could be a hint for an error. STATUS_WAIT_1I don't have the logfile handy right now, just a screenshot where the rest is missing...I included the workdir.x= %wihu%\BestCrypt\ in my command also - i have to check it later whether it works or not...Another problem i ran into: whenever i use wihu to install my software (i'm currently trying to switch from wpi) i have problems with my autologin...this is what i start:%cdrom%\Software\wihu.exe /AutoLogon /AutoInstall=300 /Beep=30 /UseCurrent /SkipRestart /Log=%systemdrive%\Install.txti even tried the /UserPwd=xyz switch :-(this might be a problem for me...another q: is there an option to change the order in which the install options are listed? b/c if i'm right i have to change all subsequent commands if i want to insert a single one :-( Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted May 26, 2005 Share Posted May 26, 2005 CODE 1 doesn't mean anything, just ignore this.What problems with autologin do you have?another q: is there an option to change the order in which the install options are listed? b/c if i'm right i have to change all subsequent commands if i want to insert a single one :-(No there is no option, you have to reorder everything;) Link to comment Share on other sites More sharing options...
WotC Posted May 27, 2005 Share Posted May 27, 2005 Thanks for ur reply! My problem regarding the Autologon is that is simply doesn't work! I don't know why - i tried it again an hour ago using a VM and autologon doesnt work - is weird! Maybe its because i included an autologon in my user creation vb script? or was it in my reg tweaks? maybe those two settings just interfere? Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted May 28, 2005 Share Posted May 28, 2005 maybe those two settings just interfere?Yes, just try it without this scripts. Link to comment Share on other sites More sharing options...
WotC Posted May 29, 2005 Share Posted May 29, 2005 ok, i'll give it a try - thanks! unfortunately, my graphics adapter is broken and i have to order a new one :-( - but as soon as i have it i'll test it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now