RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Uo .reg file

Cloudstr

Sorceror
Hi all, i need a little help from you :)
I usually create an installer for my shard files with all ultima online files, and players don't need to install the original uo.
The problem is that in this mode in windows registy don't appear custom path choosen from players when they install my files.
And with automap and razor this give a few problems.
I need an installer creator program that create a reg file whit path choosen from player.
It's possible ?
 

fwiffo

Sorceror
just use NSIS.

Code:
Name "UO Custom Installer"
 
SubCaption 0 " "
SubCaption 1 " "
SubCaption 2 " "
SubCaption 3 " "
SubCaption 4 " "
 
Icon "custom_icon.ico"
VIProductVersion "1.0.0.0"
VIAddVersionKey "ProductName" "UO Custom Installer"
VIAddVersionKey "Comments" "Installer for UO Custom"
VIAddVersionKey "CompanyName" "yourshard.com"
VIAddVersionKey "LegalTrademarks" "Installer by Fwiffo"
VIAddVersionKey "LegalCopyright" "© Fwiffo"
VIAddVersionKey "FileDescription" "UO Custom Installer"
VIAddVersionKey "FileVersion" "1.0"
BrandingText "UO Custom Installer 1.0"
Caption "UO Custom Installer"
InstallButtonText "Install"
DetailsButtonText "Detailed Log"
 
CRCCheck force
RequestExecutionLevel admin
 
SetCompressor /FINAL lzma
SetCompressorDictSize 64
 
OutFile "UO_Custom_Installer.exe"
 
LicenseData "readme.txt"
LicenseText "Read the fucking license before continuing...."
 
InstallDir 'c:\UO Custom'
InstallDirRegKey HKLM "SOFTWARE\UO Custom" "InstPath"
 
ComponentText "The installer will copy all the fucking files in your harddisk to play on yourshard.com."
 
DirText "Select where to install the fucking game:"
 
UninstallText "This procedure will remove yourshard.com from your computer."
ShowInstDetails show
 
Section "UO Custom and Razor (Required)"
SectionIn RO
SetShellVarContext all
  WriteRegStr HKLM "SOFTWARE\UO Custom" "InstPath" "$INSTDIR"
  WriteRegDWORD HKLM "SOFTWARE\Origin Worlds Online" "HarvestStage" "0x00000000"
  WriteRegDWORD HKLM "SOFTWARE\Origin Worlds Online" "HarvestStageNew" "0x00000000"
  WriteRegDWORD HKLM "SOFTWARE\Origin Worlds Online" "LastHarvestTime" "0x49a1f11a"
  WriteRegDWORD HKLM "SOFTWARE\Origin Worlds Online" "UniqueInstanceId" "0x01aab100"
  WriteRegStr HKLM "SOFTWARE\Origin Worlds Online\Ultima Online\1.0" "ExePath" "$INSTDIR\client.exe"
  WriteRegStr HKLM "SOFTWARE\Origin Worlds Online\Ultima Online\1.0" "InstCDPath" "$INSTDIR"
  WriteRegStr HKLM "SOFTWARE\Origin Worlds Online\Ultima Online\1.0" "StartExePath" "$INSTDIR\Razor\Razor.exe"
  WriteRegStr HKLM "SOFTWARE\Origin Worlds Online\Ultima Online\1.0" "Upgraded" "Yes"
 
  WriteRegStr HKLM "SOFTWARE\Razor" "InstallDir" "$INSTDIR\Razor"
  WriteRegStr HKLM "SOFTWARE\Razor" "StartMenuFolder" "UO Custom"
  WriteRegStr HKLM "SOFTWARE\Razor" "UId" "0"
 
  WriteRegStr HKCU "SOFTWARE\Razor" "DefaultLanguage" "ENU"
  WriteRegStr HKCU "SOFTWARE\Razor" "Client1" "$INSTDIR\client.exe"
  WriteRegStr HKCU "SOFTWARE\Razor" "DefClient" "2"
  WriteRegStr HKCU "SOFTWARE\Razor" "LastDir" "0"
  WriteRegStr HKCU "SOFTWARE\Razor" "LastPort" "2593"
  WriteRegStr HKCU "SOFTWARE\Razor" "LastProfile" "default"
  WriteRegStr HKCU "SOFTWARE\Razor" "LastServer" "yourshard.com"
  WriteRegStr HKCU "SOFTWARE\Razor" "PatchEncy" "1"
  WriteRegStr HKCU "SOFTWARE\Razor" "ServerEnc" "0"
  WriteRegStr HKCU "SOFTWARE\Razor" "ShowWelcome" "1"
  WriteRegStr HKCU "SOFTWARE\Razor" "Port1" "2590"
  WriteRegStr HKCU "SOFTWARE\Razor" "Server1" "yourshard.com"
  WriteRegStr HKCU "SOFTWARE\Razor" "UpdateCheck" "020391E8A569A689"
  ClearErrors
 
  CreateDirectory "$SMPROGRAMS\UO Custom"
  SetOutPath "$INSTDIR"
  CreateShortCut "$SMPROGRAMS\UO Custom\Ultima Online.lnk" "$INSTDIR\client.exe"
  SetOutPath "$INSTDIR\Razor"
  CreateShortCut "$SMPROGRAMS\UO Custom\Razor.lnk" "$INSTDIR\Razor\Razor.exe"
  SetOutPath "$INSTDIR"
 
  WriteUninstaller "UOCustom-uninst.exe"
  File /r ".\UO Custom\*.*"
  System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
SectionEnd
 
Section "Desktop Link"
SetShellVarContext all
    CreateShortCut "$DESKTOP\UO Custom.lnk" "$INSTDIR\Razor\Razor.exe"
SectionEnd
 
Section "Uninstall"
SetShellVarContext all
  RMDir /r "$INSTDIR"
  RMDir /r "$SMPROGRAMS\UO Custom"
  Delete "$DESKTOP\UO Custom.lnk"
  DeleteRegKey HKLM "SOFTWARE\UO Custom"
  DeleteRegKey HKLM "SOFTWARE\Razor"
SectionEnd
 
Top