Jump to content
Sign in to follow this  
cherdeg

CYGWIN installer curiosity with @SW_SHOW

Recommended Posts

cherdeg

Hey Guys...

$s_CYGWIN_Directory = @HomeDrive & "\cygwin"
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & "\cygwin_mirror"
$s_CYGWIN_Setup = $s_CYGWIN_Repository & "\setup.exe"
$s_cmd = $s_CYGWIN_Setup & " -q -R " & $s_CYGWIN_Directory
$i_Returncode = RunWait($s_cmd, @SW_SHOW)

This code is not able to successfully start CYGWIN's setup.exe; setup.exe will quit with exit code 1. Whithout @SW_SHOW - no problem.

Does anybody have a clue?

Regards,

Chris

Share this post


Link to post
Share on other sites
GEOSoft

$s_CYGWIN_Directory = @HomeDrive & "\cygwin"
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & "\cygwin_mirror"
$s_CYGWIN_Setup = $s_CYGWIN_Repository & "\setup.exe"
$s_cmd = $s_CYGWIN_Setup & " -q -R " & $s_CYGWIN_Directory
$i_Returncode = RunWait($s_cmd, $s_CYGWIN_Directory, @SW_SHOW)

If that doesn't do it then try this one (I'm not sure of the Cygwin setup switches).

$s_CYGWIN_Directory = @HomeDrive & "\cygwin"
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & "\cygwin_mirror"
$s_CYGWIN_Setup = $s_CYGWIN_Repository & "\setup.exe"
$s_cmd = $s_CYGWIN_Setup & " -q -R "
$i_Returncode = RunWait($s_cmd, $s_CYGWIN_Directory, @SW_SHOW)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
cherdeg

Hey George,

...thanks!!!

$s_CYGWIN_Directory = @HomeDrive & "\cygwin"
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & "\cygwin_mirror"
$s_CYGWIN_Setup = $s_CYGWIN_Repository & "\setup.exe"
$s_cmd = $s_CYGWIN_Setup & " -q -R "
$i_Returncode = RunWait($s_cmd, $s_CYGWIN_Directory, @SW_SHOW)
That doesn't do it, but you gave me inspiration...this one does:

$s_CYGWIN_Directory = @HomeDrive & "\cygwin"
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & "\cygwin_mirror"
$s_CYGWIN_Setup = $s_CYGWIN_Repository & "\setup.exe"
$s_cmd = $s_CYGWIN_Setup & " -q -R "
$i_Returncode = RunWait($s_cmd & $s_CYGWIN_Directory, $s_CYGWIN_Directory, @SW_HIDE)

Funny, isn't it?

BUT, WTF - WHY???

Me is completely braindead now.

Edited by cherdeg

Share this post


Link to post
Share on other sites
November

Hi there,

Try and change quotes to ' '

$s_CYGWIN_Directory = @HomeDrive & '\cygwin'
$s_CYGWIN_Repository    = $s_CYGWIN_Directory & '\cygwin_mirror'
$s_CYGWIN_Setup = $s_CYGWIN_Repository & '\setup.exe'
$s_cmd = $s_CYGWIN_Setup & ' -q -R ' & $s_CYGWIN_Directory
$i_Returncode = RunWait($s_cmd, @SW_SHOW)

Good luck m8!

Update :

Look at runwait help... and dont see @SW_SHOW :)

I think @@_SHOW is the default option!

I'm running beta version!

Cheers

Edited by November

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
GEOSoft

Then the first one I gave you should work because the only real difference is the @SW_ state and that won't stop it from working.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×