]> sigrok.org Git - sigrok-cli.git/commitdiff
nsis: Fix the "working dir" path for sigrok-cli.
authorUwe Hermann <redacted>
Tue, 11 Mar 2014 22:43:20 +0000 (23:43 +0100)
committerUwe Hermann <redacted>
Tue, 11 Mar 2014 22:43:20 +0000 (23:43 +0100)
For now, start the "DOS box" in the sigrok-cli installation directory,
so that the firmware files and decoder files are found correctly.
We'll probably use another solution that sets %PATH% later on, though.

Thanks to Peter Newman for bringing up this issue.

contrib/sigrok-cli_cross.nsi.in

index 402327c3f71a26de0e2594b9b617bc0e92e5d422..cffe253929e1f29114d9e8a764dd0652d7a76a34 100644 (file)
@@ -162,8 +162,8 @@ Section "@PACKAGE_NAME@ (required)" Section1
 
        # Create a shortcut for sigrok-cli (this merely opens a "DOS box").
        # Set the working directory (where the user will be placed into when
-       # the DOS box starts) to the user's Desktop directory.
-       SetOutPath "$DESKTOP"
+       # the DOS box starts) to the installation directory.
+       SetOutPath "$INSTDIR"
        CreateShortCut "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\sigrok command-line tool.lnk" \
                "$SYSDIR\cmd.exe" \
                "/K echo For instructions run @PACKAGE_NAME@ --help." \