Ability to "Install" after installer has ran already elevated? Also still getting Update notifications. #58

Closed
opened 2025-04-10 02:25:03 +08:00 by fertigq · 7 comments
fertigq commented 2025-04-10 02:25:03 +08:00 (Migrated from github.com)

When installing the generated RustDesk client (EXE) with admin privileges, a UAC prompt appears: --silent-install 1 fixes this, but I’d like an option in the generator to enable silent installation by default for both EXE and MSI, avoiding manual intervention for deployment, or another work around?

Thanks!

Image

When installing the generated RustDesk client (EXE) with admin privileges, a UAC prompt appears: --silent-install 1 fixes this, but I’d like an option in the generator to enable silent installation by default for both EXE and MSI, avoiding manual intervention for deployment, or another work around? Thanks! ![Image](https://github.com/user-attachments/assets/06817b35-07e4-4d91-b2bb-8918b9e1d801)
fertigq commented 2025-04-10 03:46:40 +08:00 (Migrated from github.com)

Also wanted to mention that after clicking "Remove notification for new versions," I am still getting a click to upgrade notification.

Image

Also wanted to mention that after clicking "Remove notification for new versions," I am still getting a click to upgrade notification. ![Image](https://github.com/user-attachments/assets/bea3983b-48ef-476d-ba51-f674365c9b9e)
bryangerlach commented 2025-04-10 04:19:45 +08:00 (Migrated from github.com)

The "Your installation is lower version" message means that the version in the exe file that you opened is newer than your installed version. This is not a notification to download a new version of rustdesk. This is letting you know that your installed version is older than your opened portable version. Click to upgrade will just install the version that you have already opened in portable mode.

I'm not sure how to do anything about a silent install. Does the official rustdesk client support a silent installation?

The "Your installation is lower version" message means that the version in the exe file that you opened is newer than your installed version. This is not a notification to download a new version of rustdesk. This is letting you know that your installed version is older than your opened portable version. Click to upgrade will just install the version that you have already opened in portable mode. I'm not sure how to do anything about a silent install. Does the official rustdesk client support a silent installation?
fertigq commented 2025-04-10 04:34:48 +08:00 (Migrated from github.com)

That's interesting, because I am uninstalling and installing each time with the files downloaded straight from the generator and still getting the message. I have tried nightly and 1.3.9, uninstalled, and reinstalled from both the exe and the MSI to see if there was a difference. Maybe I have RustDesk installed somewhere that I am unaware of?

According to this article the MSI does support silent install.

However, I am using a basic batch script to find the MSI in the folder and run the silent install that way.

Still not sure what I am doing wrong in this instance, but I am 90% of the way there from being able to utilize your tool to help us deploy RustDesk! Which is exciting for us! I am going to take a peek at your API server if I can get all the kinks worked out here. I am open to alternatives as well if I need a different workaround.

Here's my little batch script if you were interested at all

@echo off
setlocal enabledelayedexpansion

:: Set the directory to where this script is running from
set "INSTALLER_DIR=%~dp0"

:: Search for a RustDesk MSI in the directory
echo Searching for RustDesk MSI in %INSTALLER_DIR%...
for /f "delims=" %%i in ('dir /b "%INSTALLER_DIR%\RustDesk*.msi" 2^>nul') do (
    set "INSTALLER=%INSTALLER_DIR%%%i"
    echo Found installer: %%i
    goto :install
)

:: If no installer is found, show a message and wait
echo No RustDesk MSI found in %INSTALLER_DIR%. Check the folder!
pause
exit /b

:install
:: Run the silent install
echo Installing RustDesk...
msiexec /i "%INSTALLER%" /qn /norestart ALLUSERS=1

echo RustDesk installed! Press any key to exit...
pause >nul
exit /b
That's interesting, because I am uninstalling and installing each time with the files downloaded straight from the generator and still getting the message. I have tried nightly and 1.3.9, uninstalled, and reinstalled from both the exe and the MSI to see if there was a difference. Maybe I have RustDesk installed somewhere that I am unaware of? According to this [article ]( https://rustdesk.com/docs/en/client/windows/msi/) the MSI does support silent install. However, I am using a basic batch script to find the MSI in the folder and run the silent install that way. Still not sure what I am doing wrong in this instance, but I am 90% of the way there from being able to utilize your tool to help us deploy RustDesk! Which is exciting for us! I am going to take a peek at your API server if I can get all the kinks worked out here. I am open to alternatives as well if I need a different workaround. Here's my little batch script if you were interested at all ```batch @echo off setlocal enabledelayedexpansion :: Set the directory to where this script is running from set "INSTALLER_DIR=%~dp0" :: Search for a RustDesk MSI in the directory echo Searching for RustDesk MSI in %INSTALLER_DIR%... for /f "delims=" %%i in ('dir /b "%INSTALLER_DIR%\RustDesk*.msi" 2^>nul') do ( set "INSTALLER=%INSTALLER_DIR%%%i" echo Found installer: %%i goto :install ) :: If no installer is found, show a message and wait echo No RustDesk MSI found in %INSTALLER_DIR%. Check the folder! pause exit /b :install :: Run the silent install echo Installing RustDesk... msiexec /i "%INSTALLER%" /qn /norestart ALLUSERS=1 echo RustDesk installed! Press any key to exit... pause >nul exit /b
bryangerlach commented 2025-04-10 05:01:06 +08:00 (Migrated from github.com)

Every time you generate a new client exe it will be a newer version than the older installed version, based on build date/time. If it is a fresh install and still showing that notification, then there is likely an issue with your app name interfering with the service somehow. I have seen this issue with long app names or names with spaces or special characters. It is usually best to keep the appname short with only one word, like rustdesk. I need to do more testing on the affects of app names on the installation and service component as it seems to be causing some issues.

Every time you generate a new client exe it will be a newer version than the older installed version, based on build date/time. If it is a fresh install and still showing that notification, then there is likely an issue with your app name interfering with the service somehow. I have seen this issue with long app names or names with spaces or special characters. It is usually best to keep the appname short with only one word, like rustdesk. I need to do more testing on the affects of app names on the installation and service component as it seems to be causing some issues.
bryangerlach commented 2025-04-10 06:54:54 +08:00 (Migrated from github.com)

When you have installed the software and still get the "Your installation is lower version" message, does the app show up in the Windows "Add or remove programs" (also called Apps from the settings)?

When you have installed the software and still get the "Your installation is lower version" message, does the app show up in the Windows "Add or remove programs" (also called Apps from the settings)?
bryangerlach commented 2025-04-10 13:28:56 +08:00 (Migrated from github.com)

I have updated the generator to fix the "Your installation is lower version" bug. Once you generate a new client, and install it, you should no longer get that message.

I don't know of a way to make the exe or msi do a silent install by default. The only way I know that you can do a silent install is with the command line parameters.

I have updated the generator to fix the "Your installation is lower version" bug. Once you generate a new client, and install it, you should no longer get that message. I don't know of a way to make the exe or msi do a silent install by default. The only way I know that you can do a silent install is with the command line parameters.
fertigq commented 2025-04-10 21:34:19 +08:00 (Migrated from github.com)

Thank you so much for the help!

Thank you so much for the help!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#58