summaryrefslogtreecommitdiff
path: root/altosui/altos-windows.nsi.in
diff options
context:
space:
mode:
Diffstat (limited to 'altosui/altos-windows.nsi.in')
-rw-r--r--altosui/altos-windows.nsi.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/altosui/altos-windows.nsi.in b/altosui/altos-windows.nsi.in
index 5a632f89..32498039 100644
--- a/altosui/altos-windows.nsi.in
+++ b/altosui/altos-windows.nsi.in
@@ -94,15 +94,18 @@ Section "Install Driver" InstDriver
InstDrv::DeleteOemInfFiles /NOUNLOAD
InstDrv::CreateDevice /NOUNLOAD
- SetOutPath $TEMP
- File "../altusmetrum.inf"
- InstDrv::InstallDriver /NOUNLOAD "$TEMP\altusmetrum.inf"
-
SetOutPath $INSTDIR
File "../altusmetrum.inf"
+ File "../altusmetrum.cat"
- SetOutPath $WINDIR\Inf
- File "../altusmetrum.inf"
+ ${DisableX64FSRedirection}
+ IfFileExists $WINDIR\System32\PnPutil.exe 0 nopnp
+ ${DisableX64FSRedirection}
+ nsExec::ExecToLog '"$WINDIR\System32\PnPutil.exe" -i -a "$INSTDIR\altusmetrum.inf"'
+ Goto done
+nopnp:
+ InstDrv::InstallDriver /NOUNLOAD "$INSTDIR\altusmetrum.inf"
+done:
SectionEnd