Skip to content

Commit

Permalink
[ICIJ/datashare#360] replacing symbolic links during win installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanzalu committed Mar 10, 2020
1 parent 2cd4f95 commit 07cc01f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions windows/installDatashareLight.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ Function InstallDatashare
createDirectory "$APPDATA\Datashare\index"
createDirectory "$APPDATA\Datashare\data"

#CreateShortcut "$DESKTOP\Datashare Data.lnk" "$APPDATA\Datashare\data"
nsExec::Exec 'cmd /c mklink /d "$DESKTOP\Datashare Data" "$APPDATA\Datashare\data"'
# Create symbolic links
rmDir /r "$DESKTOP\Datashare Data"
nsExec::ExecToStack 'cmd /c mklink /d "$DESKTOP\Datashare Data" "$APPDATA\Datashare\data"'
DetailPrint 'Link created from "$APPDATA\Datashare\data" to "$DESKTOP\Datashare Data"'

nsExec::Exec 'cmd /c mklink /d $APPDATA\Datashare\app "$INSTDIR\app"'
rmDir /r "$APPDATA\Datashare\app"
nsExec::ExecToStack 'cmd /c mklink /d $APPDATA\Datashare\app "$INSTDIR\app"'
DetailPrint 'Link created from "$INSTDIR\app" to "$APPDATA\Datashare\app"'

writeUninstaller "$INSTDIR\uninstall.exe"
Expand Down

0 comments on commit 07cc01f

Please sign in to comment.