Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Unable to re-install to a different folder path

Post Reply
ProIT_Admin
Posts: 3
Joined: 2016-09-19 18:44

Unable to re-install to a different folder path

Post by ProIT_Admin »

Hello all,

Moderator, please delete if this is the incorrect place for this question.

While attempting to script an installation for many computers, I cam across this issue.
I have an issue where a PC orginally had it's UltraVNC installation at C:\Program Files\uvnc bvba\UltraVNC.
When I uninstall and attempt to re-install (see batch file commands below), it still uses the original path of C:\Program Files\uvnc bvba\UltraVNC, even though the new path is clearly identified in the configvnc-EN.inf file (also see .inf file contents below)

Any ideas? Possibly a registry entry that could be doing this?
Same issue even after uninstalling, rebooting and installing with the batch lines below.

Any help with this would be greatly appreciated!

command in batch file
"%programfiles%\uvnc bvba\UltraVNC\unins000.exe" /SILENT
...
UltraVNC_1_2_11_X64_Setup.exe /Silent /no restart /loadinf="configvnc-EN.inf"

ConfigVNC-EN.inf contents
[Setup]
Lang=en
Dir=C:\Program Files\UltraVNC
Group=UltraVNC
NoIcons=0
SetupType=full
Components=ultravnc_server,ultravnc_viewer,ultravnc_repeater
Tasks=installservice,startservice,associate
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Unable to re-install to a different folder path

Post by Rudi De Vos »

We use inno setup, i'm not a commandline expert.
I only can provide the config file and parameters, perhaps you need to
overwrite the used parameters. Or check the Inno site for the correct onces.

Code: Select all

#define AppName "UltraVNC"
#define AppID "Ultravnc2"
#define AppPublisher "uvnc bvba"

[Setup]
AppName=UltraVNC
AppVerName=UltraVNC 1.2.1.1
AppVersion=1.2.1.1
VersionInfoVersion=1.2.1.1
AppPublisher=uvnc bvba
AppCopyright=UltraVnc Team
AppPublisherURL={cm:PublisherURL}
AppSupportURL={cm:SupportURL}
AppUpdatesURL={cm:UpdatesURL}
DefaultDirName={pf}\{cm:MyAppPublisher}\{cm:MyAppName}
DefaultGroupName={cm:MyAppName}
WindowVisible=false
DisableStartupPrompt=true
DisableReadyPage=false
ChangesAssociations=true
PrivilegesRequired=admin
AppID={#AppID}
UninstallRestartComputer=false
DirExistsWarning=no
OutputDir=setupfile
OutputBaseFilename=UltraVNC_1_2_11_X64_Setup
BackColorDirection=lefttoright
UserInfoPage=false
ShowLanguageDialog=yes
LanguageDetectionMethod=uilanguage
AllowUNCPath=false
WindowShowCaption=false
WindowStartMaximized=false
WindowResizable=false
Compression=lzma/Ultra
AlwaysRestart=false
VersionInfoDescription={#AppName} Setup
WizardImageBackColor=clWhite
WizardImageStretch=false
SetupIconFile=icon\UltraVNC.ico
WizardImageFile=bmp\UltraVNC-splash.bmp
WizardSmallImageFile=bmp\UltraVNC-logo.bmp
InfoAfterFile=text\Readme.txt
InfoBeforeFile=text\Whatsnew.rtf
LicenseFile=text\Licence.rtf
InternalCompressLevel=Ultra
SolidCompression=true
SignTool=signing
VersionInfoCompany=uvnc bvba
VersionInfoCopyright=UltraVnc Team
VersionInfoProductName=UltraVnc 
VersionInfoProductVersion=1.2.1.1
UninstallDisplayName=UltraVnc
ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed=x64
UninstallIconFile=icon\UltraVNC.ico

...
[Types]
Name: full; Description: {cm:FullInstall}
Name: server; Description: {cm:ServerOnly}
Name: server_silent; Description: {cm:ServerOnlyS}
Name: viewer; Description: {cm:ViewerOnly}
Name: repeater; Description: Repeater
Name: custom; Description: {cm:CustomInstall}; Flags: iscustom
Name: Upgrade; Description: Upgrade

[Components]
Name: UltraVNC_Server_S; Description: UltraVNC Server Silent; Types: server_silent; Flags: disablenouninstallwarning
Name: UltraVNC_Server; Description: UltraVNC Server; Types: full server; Flags: disablenouninstallwarning
Name: UltraVNC_Viewer; Description: UltraVNC Viewer; Types: full viewer; Flags: disablenouninstallwarning
Name: UltraVNC_Repeater; Description: UltraVNC Repeater; Types: full repeater; Flags: disablenouninstallwarning
Name: UltraVNC_Upgrade; Description: Upgrade 1.0.8/1.0.9 .. Upgrade can be done while vnc is running; Types: Upgrade; Flags: disablenouninstallwarning

[Tasks]
Name: installservice; Description: {cm:InstallService,UltraVNC Server}; GroupDescription: {cm:ServerConfig}; Components: UltraVNC_Server UltraVNC_Server_S; MinVersion: 0,1; Check: isTaskChecked('installservice')
Name: installservice; Description: {cm:InstallService,UltraVNC Server}; GroupDescription: {cm:ServerConfig}; Components: UltraVNC_Server UltraVNC_Server_S; MinVersion: 0,1; Flags: unchecked; Check: not(isTaskChecked('installservice'))
Name: startservice; Description: {cm:StartService,UltraVNC}; GroupDescription: {cm:ServerConfig}; Components: UltraVNC_Server UltraVNC_Server_S; MinVersion: 0,1; Check: isTaskChecked('startservice')
Name: startservice; Description: {cm:StartService,UltraVNC}; GroupDescription: {cm:ServerConfig}; Components: UltraVNC_Server UltraVNC_Server_S; MinVersion: 0,1; Flags: unchecked; Check: not(isTaskChecked('startservice'))
Name: desktopicon; Description: {cm:CreateDesktopIcons,UltraVNC}; Components: UltraVNC_Viewer UltraVNC_Server UltraVNC_Server_S; Check: isTaskChecked('desktopicon')
Name: desktopicon; Description: {cm:CreateDesktopIcons,UltraVNC}; Components: UltraVNC_Viewer UltraVNC_Server UltraVNC_Server_S; Flags: unchecked; Check: not(isTaskChecked('desktopicon'))
Name: associate; Description: {cm:AssocFileExtension,UltraVNC Viewer,.vnc}; Components: UltraVNC_Viewer; Check: isTaskChecked('associate')
Name: associate; Description: {cm:AssocFileExtension,UltraVNC Viewer,.vnc}; Components: UltraVNC_Viewer; Flags: unchecked; Check: not(isTaskChecked('associate'))
ProIT_Admin
Posts: 3
Joined: 2016-09-19 18:44

Re: Unable to re-install to a different folder path

Post by ProIT_Admin »

I have never used inno. Have you had any experience using this with an SCCM deployment?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Unable to re-install to a different folder path

Post by Rudi De Vos »

UsePreviousAppDir need to be no
Post Reply