MSFN Forum: msiexec /i ... or not? that's the question! - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

msiexec /i ... or not? that's the question! Rate Topic: -----

#1 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

  Posted 15 September 2004 - 10:05 AM

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
(...)



#2 User is offline   C.RAZY 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 25-August 04

Posted 16 September 2004 - 08:21 AM

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

#3 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

Posted 16 September 2004 - 09:28 AM

Quote

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

#4 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 16 September 2004 - 05:04 PM

Let me clarify: workdir.x will only set current working directory during execution of the specified command, NOT before.

Benjamin

#5 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 18 September 2004 - 02:00 PM

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 3
this will be replaced by "test.exe" 1 2 3
Inexplicably 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

#6 User is offline   WotC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 29-January 05

Posted 23 May 2005 - 03:10 AM

I had a quick look in the forum but couldn't find anything regarding the following problem. How do i send a command like
command.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 advance

edit: 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?

#7 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 25 May 2005 - 03:47 PM

What error did you get?
Is the path in second example correct? is "BestCrypt" really a sub directory of WIHU executable directory?

#8 User is offline   WotC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 29-January 05

Posted 26 May 2005 - 04:52 AM

Something like "BestCrypt 7.12" terminated with code_1.Could be a hint for an error. STATUS_WAIT_1

I 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.txt

i 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 :-(

#9 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 26 May 2005 - 02:02 PM

CODE 1 doesn't mean anything, just ignore this.

What problems with autologin do you have?

Quote

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;)

#10 User is offline   WotC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 29-January 05

Posted 27 May 2005 - 01:01 PM

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?

#11 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 28 May 2005 - 05:20 AM

Quote

maybe those two settings just interfere?


Yes, just try it without this scripts.

#12 User is offline   WotC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 29-January 05

Posted 29 May 2005 - 02:30 PM

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!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy