-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3740680
commit d746c0b
Showing
7 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
rem This script is available since version 1.17 | ||
rem This script installs an .msu file as Npackd package | ||
rem There must be only one .msu file in the current directory. | ||
rem | ||
for /f "delims=" %%x in ('dir /b *.msu') do set setup=%%x | ||
mkdir .Npackd | ||
move "%setup%" .Npackd | ||
set err=%errorlevel% | ||
if %err% neq 0 exit %err% | ||
|
||
wusa ".Npackd\%setup%" /quiet /norestart /log:.Npackd\InstallMSU.log | ||
set err=%errorlevel% | ||
wevtutil.exe qe .Npackd\InstallMSU.log /lf:true /f:Text /uni:true | ||
|
||
if %err% neq 0 exit %err% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
rem This script is available since version 1.17 | ||
rem This script uninstalls an .msu file as Npackd package previosly installed | ||
rem by InstallMSI.bat. | ||
|
||
move .Npackd\*.msu . | ||
for /f "delims=" %%x in ('dir /b *.msu') do set setup=%%x | ||
|
||
wusa /uninstall "%setup%" /quiet /norestart /log:.Npackd\UninstallMSU.log | ||
set err=%errorlevel% | ||
wevtutil.exe qe .Npackd\UninstallMSU.log /lf:true /f:Text /uni:true | ||
|
||
if %err% neq 0 exit %err% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
try { | ||
var fs = new ActiveXObject("Scripting.FileSystemObject"); | ||
var sh = WScript.CreateObject("WScript.Shell"); | ||
var lib = eval(fs.OpenTextFile( | ||
WScript.Arguments(0) + "\\Lib.js", 1).ReadAll()); | ||
lib.installerHelper = WScript.Arguments(0); | ||
|
||
lib.unpackAndDelete(WScript.Arguments(1), "."); | ||
} catch (e) { | ||
WScript.Echo(e.name + ": " + e.message); | ||
WScript.Echo(e.number + ": " + e.description); | ||
WScript.Quit(1); | ||
} |