This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
setup: Execute postinstall batch with /d to prevent AutoRun
- From: "Arlo O'Keeffe" <mailtoarlo at gmail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Mon, 12 Aug 2013 14:17:25 +0200
- Subject: setup: Execute postinstall batch with /d to prevent AutoRun
Hi all,
I am experiencing issues with autorebase.bat during setup. The call to
autorebase.bat simply fails.
I use a registry key [1] to execute a batch file before opening cmd to
setup my cmd environment with doskey [2]. I guess that doskey tries to
access something that simply does not exist in the noninteractive
shell and therefore fails. Since I could not find a way to detect a
noninteractive shell in cmd I was thinking one could change the call
to cmd in script.cc to include the /d parameter [3] to prevent running
the AutoRun registry keys.
Does that make sense?
Thanks,
Arlo
1: http://technet.microsoft.com/en-us/library/cc779439(v=WS.10).aspx
2: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/doskey.mspx?mfr=true
3: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true
--
Arlo O'Keeffe | Skype: arlolok