Skip to content

Commit

Permalink
Added context menu entry for folders to install script, removed unuse…
Browse files Browse the repository at this point in the history
…d sub
  • Loading branch information
Walkman100 committed Jul 14, 2015
1 parent 62389e4 commit c1a5df3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
7 changes: 0 additions & 7 deletions BackgroundProgress.vb
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,6 @@ Public Class BackgroundProgress
End Try
End Sub

''' <summary>Sets the status label text to statusText.</summary>
''' TEMPORARY SUB
''' <param name="statusText">The text to display on the status label</param>
Sub SetStatus(statusText As String)
lblStatus.Text = statusText
End Sub

''' <summary>Sets the status label text to statusText, and the progress bar percent to statusPercent.</summary>
''' <param name="statusText">The text to display on the status label</param>
''' <param name="statusPercent">The percent to set the progress bar value to. 0-100</param>
Expand Down
17 changes: 12 additions & 5 deletions NSIS Installer for PropertiesDotNet.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ Section "Quick Launch Shortcut"
SectionEnd

Section "Add PropertiesDotNet to context menu"
; File item
WriteRegStr HKCR "*\shell\PropertiesDotNet" "" "Properties..."
WriteRegStr HKCR "*\shell\PropertiesDotNet" "Icon" "$INSTDIR\PropertiesDotNet.exe"
WriteRegStr HKCR "*\shell\PropertiesDotNet\command" "" "$\"$INSTDIR\PropertiesDotNet.exe$\" $\"%1$\""

; Folder item
WriteRegStr HKCR "Directory\shell\PropertiesDotNet" "" "Properties..."
WriteRegStr HKCR "Directory\shell\PropertiesDotNet" "Icon" "$INSTDIR\PropertiesDotNet.exe"
WriteRegStr HKCR "Directory\shell\PropertiesDotNet\command" "" "$\"$INSTDIR\PropertiesDotNet.exe$\" $\"%1$\""
SectionEnd

; Functions
Expand All @@ -75,18 +81,19 @@ FunctionEnd
; Uninstaller

Section "Uninstall"
Delete "$INSTDIR\PropertiesDotNet-Uninst.exe" ; Remove Application Files
Delete "$INSTDIR\PropertiesDotNet-Uninst.exe" ; Remove Application Files
Delete "$INSTDIR\PropertiesDotNet.exe"
RMDir "$INSTDIR"

Delete "$SMPROGRAMS\WalkmanOSS\PropertiesDotNet.lnk" ; Remove Start Menu Shortcuts & Folder
Delete "$SMPROGRAMS\WalkmanOSS\PropertiesDotNet.lnk" ; Remove Start Menu Shortcuts & Folder
Delete "$SMPROGRAMS\WalkmanOSS\Uninstall PropertiesDotNet.lnk"
RMDir "$SMPROGRAMS\WalkmanOSS"

Delete "$DESKTOP\PropertiesDotNet.lnk" ; Remove Desktop Shortcut
Delete "$QUICKLAUNCH\PropertiesDotNet.lnk" ; Remove Quick Launch Shortcut
Delete "$DESKTOP\PropertiesDotNet.lnk" ; Remove Desktop Shortcut
Delete "$QUICKLAUNCH\PropertiesDotNet.lnk" ; Remove Quick Launch Shortcut

DeleteRegKey HKCR "*\shell\PropertiesDotNet" ; Remove context menu item
DeleteRegKey HKCR "*\shell\PropertiesDotNet" ; Remove files context menu item
DeleteRegKey HKCR "Directory\shell\PropertiesDotNet" ; Remove folder context menu item
SectionEnd

; Uninstaller Functions
Expand Down

0 comments on commit c1a5df3

Please sign in to comment.