summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09d37db)
raw | patch | inline | side by side (parent: 09d37db)
author | theadib <theadib@users.sourceforge.net> | |
Mon, 22 May 2006 20:42:39 +0000 (20:42 +0000) | ||
committer | theadib <theadib@users.sourceforge.net> | |
Mon, 22 May 2006 20:42:39 +0000 (20:42 +0000) |
index 239281d4639f6c01cdf963b3b93ff870dc604be5..db63d6350661c24c65a91384dbb27e7c5221ef88 100644 (file)
; Bottom text for the license page\r
LangString lng_LICENSE_BOTTOM_TEXT ${LANG_CZECH} "$(^Name) je vydáván pod General Public License (GPL). Licenèní ujednání je zde pouze z informaèních dùvodù. $_CLICK"\r
\r
+;has been installed by different user\r
+LangString lng_DIFFERENT_USER ${LANG_CZECH} "Inkscape has been installed by user $0. If you continue you might not complete successfully! Please log in as $0 and try again."\r
+\r
+;you have no admin rigths\r
+LangString lng_NO_ADMIN ${LANG_CZECH} "You do not have administrator privileges. Installing Inkscape for all users might not complete successfully. Uncheck option 'For All Users'."\r
+\r
+;win9x is not supported\r
+LangString lng_NOT_SUPPORTED ${LANG_CZECH} "Inkscape is known not to run under Windows 95/98/ME!\n\nPlease check the official website for detailed information."\r
+\r
; Full install type\r
LangString lng_Full $(LANG_CZECH) "Plná"\r
\r
LangString lng_tr $(LANG_CZECH) "tr Turkish"\r
LangString lng_uk $(LANG_CZECH) "uk Ukrainian"\r
LangString lng_zh_CN $(LANG_CZECH) "zh_CH Simplifed Chinese"\r
-LangString lng_zh_TW $(LANG_CZECH) "zh_TW Chinese (Taiwan)"\r
+LangString lng_zh_TW $(LANG_CZECH) "zh_TW Traditional Chinese"\r
\r
\r
\r
index 125e71908e914ee852ef97fff2e0952cc42cdaa7..0bf05fd344ede476f3f248a9fdf1202475c77032 100644 (file)
; Bottom text for the license page
LangString lng_LICENSE_BOTTOM_TEXT ${LANG_ENGLISH} "$(^Name) is released under the GNU General Public License (GPL). The license is provided here for information purposes only. $_CLICK"
+;has been installed by different user
+LangString lng_DIFFERENT_USER ${LANG_ENGLISH} "Inkscape has been installed by user $0.$\r$\nIf you continue you might not complete successfully!$\r$\nPlease log in as $0 and try again."
+
+;you have no admin rigths
+LangString lng_NO_ADMIN ${LANG_ENGLISH} "You do not have administrator privileges.$\r$\nInstalling Inkscape for all users might not complete successfully.$\r$\nUncheck the 'for all users' option."
+
+;win9x is not supported
+LangString lng_NOT_SUPPORTED ${LANG_ENGLISH} "Inkscape is known not to run under Windows 95/98/ME!$\r$\nPlease check the official website for detailed information."
+
; Full install type
LangString lng_Full $(LANG_ENGLISH) "Full"
LangString lng_tr $(LANG_ENGLISH) "tr Turkish"
LangString lng_uk $(LANG_ENGLISH) "uk Ukrainian"
LangString lng_zh_CN $(LANG_ENGLISH) "zh_CH Simplifed Chinese"
-LangString lng_zh_TW $(LANG_ENGLISH) "zh_TW Chinese (Taiwan)"
+LangString lng_zh_TW $(LANG_ENGLISH) "zh_TW Traditional Chinese"
index 8558e6630e331efe540200928f5f99361b22d66d..aa85009dba521fb382eaf939294fa19ef68d5571 100644 (file)
; Bottom text for the license page
LangString lng_LICENSE_BOTTOM_TEXT ${LANG_GERMAN} "$(^Name) wird unter der GNU General Public License (GPL) veröffentlicht. Die Lizenz dient hier nur der Information. $_CLICK"
+;has been installed by different user
+LangString lng_DIFFERENT_USER ${LANG_GERMAN} "Inkscape wurde durch den Benutzer $0 installiert.$\r$\nWenn Sie fortfahren kann die Aktion möglicherweise nicht korrekt abgeschlossen werden!$\r$\nBitte melden Sie sich als $0 an und versuchen Sie es erneut."
+
+;you have no admin rigths
+LangString lng_NO_ADMIN ${LANG_GERMAN} "Sie sind nicht Computeradministrator.$\r$\nDas Installieren für alle Benutzer kann möglicherweise nicht korrekt abgeschlossen werden.$\r$\nBitte deselektieren Sie die Option 'für Alle Benutzer'."
+
+;win9x is not supported
+LangString lng_NOT_SUPPORTED ${LANG_GERMAN} "Es ist bekannt, dass Inkscape unter Windows 95/98/ME nicht oder nicht stabil läuft!$\r$\nBitte prüfen Sie die offizielle Webseite für detaillierte Informationen."
+
; Full install type
LangString lng_Full $(LANG_GERMAN) "Komplett"
LangString lng_tr $(LANG_GERMAN) "tr Türkisch"
LangString lng_uk $(LANG_GERMAN) "uk Ukrainisch"
LangString lng_zh_CN $(LANG_GERMAN) "zh_CH Chinesisch (vereinfacht)"
-LangString lng_zh_TW $(LANG_GERMAN) "zh_TW Chinesisch (Taiwan)"
+LangString lng_zh_TW $(LANG_GERMAN) "zh_TW Chinesisch (traditionell)"
; uninstallation options
index bd4d442a87e43db80b9f95f7ff032b296f043dc1..e027f66a6d5a77c43734fff956dbe898d02c3877 100644 (file)
var askMultiUser
Var MultiUser
+var User
; #######################################
; I N S T A L L E R S E C T I O N S
; this file is added because it slips through the filter
SetOutPath $INSTDIR\share\clipart
File /a "..\..\inkscape\share\clipart\inkscape.logo.svg"
+ File /a "..\..\inkscape\share\clipart\inkscape.logo.classic.svg"
SetOutPath $INSTDIR\modules
File /nonfatal /a /r "..\..\inkscape\modules\*.*"
SetOutPath $INSTDIR\python
Section $(lng_Desktop) SecDesktop
SectionIn 1 2 3
+ ClearErrors
CreateShortCut "$DESKTOP\Inkscape.lnk" "$INSTDIR\inkscape.exe"
+ IfErrors 0 +2
+ DetailPrint "Uups! Problems creating desktop shortcuts"
SectionEnd
Section $(lng_Quicklaunch) SecQuicklaunch
SectionIn 1 2 3
+ ClearErrors
StrCmp $QUICKLAUNCH $TEMP +2
CreateShortCut "$QUICKLAUNCH\Inkscape.lnk" "$INSTDIR\inkscape.exe"
+ IfErrors 0 +2
+ DetailPrint "Uups! Problems creating quicklaunch shortcuts"
SectionEnd
Section $(lng_SVGWriter) SecSVGWriter
SectionIn 1 2 3
; create file associations, test before if needed
DetailPrint "creating file associations"
+ ClearErrors
ReadRegStr $0 HKCR ".svg" ""
StrCmp $0 "" 0 +3
WriteRegStr HKCR ".svg" "" "svgfile"
StrCmp $0 "" 0 +3
WriteRegStr HKCR ".svgz" "" "svgfile"
WriteRegStr HKCR "svgfile" "" "Scalable Vector Graphics file"
+ IfErrors 0 +2
+ DetailPrint "Uups! Problems creating file assoziations for svg writer"
DetailPrint "creating default editor"
ClearErrors
SectionIn 1 2 3
; create file associations, test before if needed
DetailPrint "creating file associations"
+ ClearErrors
ReadRegStr $0 HKCR ".svg" ""
StrCmp $0 "" 0 +3
WriteRegStr HKCR ".svg" "" "svgfile"
StrCmp $0 "" 0 +3
WriteRegStr HKCR ".svgz" "" "svgfile"
WriteRegStr HKCR "svgfile" "" "Scalable Vector Graphics file"
+ IfErrors 0 +2
+ DetailPrint "Uups! Problems creating file assoziations for context menu"
DetailPrint "creating context menue"
ClearErrors
; DetailPrint "aborting installation"
; Abort
WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "MultiUser" "$MultiUser"
- WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "askMultiUser" "$askMultiUser"
+ WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "askMultiUser" "$askMultiUser"
+ WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "User" "$User"
+ IfErrors 0 +2
+ DetailPrint "fatal: failed to write to registry installation info"
; start menu entries
+ ClearErrors
CreateDirectory "$SMPROGRAMS\Inkscape"
CreateShortCut "$SMPROGRAMS\Inkscape\Inkscape.lnk" "$INSTDIR\inkscape.exe"
CreateShortCut "$SMPROGRAMS\Inkscape\Uninstall Inkscape.lnk" "$INSTDIR\uninst.exe"
+ IfErrors 0 +2
+ DetailPrint "fatal: failed to write to start menu info"
; uninstall settings
+ ClearErrors
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegExpandStr SHCTX "${PRODUCT_UNINST_KEY}" "UninstallString" '"$INSTDIR\uninst.exe"'
WriteRegExpandStr SHCTX "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR"
WriteRegStr SHCTX "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegDWORD SHCTX "${PRODUCT_UNINST_KEY}" "NoModify" "1"
WriteRegDWORD SHCTX "${PRODUCT_UNINST_KEY}" "NoRepair" "1"
+ IfErrors 0 +2
+ DetailPrint "fatal: failed to write to registry un-installation info"
SectionEnd
SectionGroupEnd
; hide if quick launch if not available
StrCmp $QUICKLAUNCH $TEMP 0 +2
SectionSetText ${SecQuicklaunch} ""
+
+ ;check if user is admin
+ ClearErrors
+ UserInfo::GetName
+ IfErrors info_Win9x
+ Pop $0
+ StrCpy $User $0
+ UserInfo::GetAccountType
+ Pop $1
+ StrCmp $1 "Admin" info_done
+
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(lng_NO_ADMIN)"
+
+ Goto info_done
+
+ info_Win9x:
+ # This one means you don't need to care about admin or
+ # not admin because Windows 9x doesn't either
+ MessageBox MB_OK|MB_ICONEXCLAMATION $(lng_NOT_SUPPORTED)
+
+ info_done:
+
+ ;check for previous installation
+ ReadRegStr $0 HKLM "${PRODUCT_DIR_REGKEY}" "User"
+ StrCmp $0 "" +1 +2
+ ReadRegStr $0 HKCU "${PRODUCT_DIR_REGKEY}" "User"
+ ;check user if applicable
+ StrCmp $0 "" +3
+ StrCmp $0 $User +2
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(lng_DIFFERENT_USER)"
; proccess command line parameter
!insertmacro Parameter "GTK" ${SecGTK}
!insertmacro Parameter "hu" ${SecHungarian}
!insertmacro Parameter "it" ${SecItalian}
!insertmacro Parameter "ja" ${SecJapanese}
+ !insertmacro Parameter "ko" ${SecKorean}
!insertmacro Parameter "mk" ${SecMacedonian}
!insertmacro Parameter "nb" ${SecNorwegianBokmal}
!insertmacro Parameter "nl" ${SecDutch}
!insertmacro Parameter "tr" ${SecTurkish}
!insertmacro Parameter "uk" ${SecUkrainian}
!insertmacro Parameter "zh_CN" ${SecChineseSimplified}
+ !insertmacro Parameter "zh_TW" ${SecChineseTaiwan}
Push "?"
Push "TEST"
Function un.onInit
+ ClearErrors
+ StrCpy $User ""
+ UserInfo::GetName
+ IfErrors +3
+ Pop $0
+ StrCpy $User $0
+
StrCpy $askMultiUser "1"
StrCpy $MultiUser "1"
; Test if this was a multiuser installation
ReadRegStr $0 HKLM "${PRODUCT_DIR_REGKEY}" ""
- StrCmp $0 "$INSTDIR\inkscape.exe" 0 +4
+ StrCmp $0 "$INSTDIR\inkscape.exe" 0 +5
ReadRegStr $MultiUser HKLM "${PRODUCT_DIR_REGKEY}" "MultiUser"
ReadRegStr $askMultiUser HKLM "${PRODUCT_DIR_REGKEY}" "askMultiUser"
- Goto +3
+ ReadRegStr $0 HKLM "${PRODUCT_DIR_REGKEY}" "User"
+ Goto +4
ReadRegStr $MultiUser HKCU "${PRODUCT_DIR_REGKEY}" "MultiUser"
ReadRegStr $askMultiUser HKCU "${PRODUCT_DIR_REGKEY}" "askMultiUser"
-
-
+ ReadRegStr $0 HKCU "${PRODUCT_DIR_REGKEY}" "User"
+ ;check user if applicable
+ StrCmp $0 "" +3
+ StrCmp $0 $User +2
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(lng_DIFFERENT_USER)"
+
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "inkscape.nsi.uninstall"
;check whether Multi user installation ?
index 59a62d798809160d0d441045b050d10a52122d27..dfcf0750719a642a4cae5bacf6487dae84abcb8f 100644 (file)
; Bottom text for the license page\r
LangString lng_LICENSE_BOTTOM_TEXT ${LANG_ITALIAN} "$(^Name) e' rilasciato sotto GNU General Public License (GPL). La licenza e' fornita solo a scopo informativo. $_CLICK"\r
\r
+;has been installed by different user\r
+LangString lng_DIFFERENT_USER ${LANG_ITALIAN} "Inkscape has been installed by user $0. If you continue you might not complete successfully! Please log in as $0 and try again."\r
+\r
+;you have no admin rigths\r
+LangString lng_NO_ADMIN ${LANG_ITALIAN} "You do not have administrator privileges. Installing Inkscape for all users might not complete successfully. Uncheck option 'For All Users'."\r
+\r
+;win9x is not supported\r
+LangString lng_NOT_SUPPORTED ${LANG_ITALIAN} "Inkscape is known not to run under Windows 95/98/ME!\n\nPlease check the official website for detailed information."\r
+\r
; Full install type\r
LangString lng_Full $(LANG_ITALIAN) "COmpleta"\r
\r
LangString lng_tr $(LANG_ITALIAN) "tr Turco"\r
LangString lng_uk $(LANG_ITALIAN) "uk Ucraino"\r
LangString lng_zh_CN $(LANG_ITALIAN) "zh_CH Cinese Semplificato"\r
-LangString lng_zh_TW $(LANG_ITALIAN) "zh_TW Cinese (Taiwan)"\r
+LangString lng_zh_TW $(LANG_ITALIAN) "zh_TW Traditional Cinese"\r
\r
\r
\r