Background story
Recently, I have playing around with Windows scripting to perform automation of installation process.
Fun fact
I haven't do any scripting before in Windows platform, and this is the first I've tried.
So, what's different between linux and windows in terms of scripting?
- backslash in the path, WTF?
- msiexec need the installer's absolute, full path in order to work, WTF?
- escape character is
^
instead of\
, WTF? - runas instead of sudo, it require user to interact with a button by clicking it instead of enter some password, WTF?
- you can't escalate privilege on current terminal session legally and officially. you must spawn new terminal in order to achieve that. WTF?
- beware of error in your bat or cmd script! sometimes it gives you vague error and at the end you realize it just a typo or smth.
Yeah, that's new to me.