rustdesk / rustdesk-server-pro

Some scripts for RustDesk Server Pro are hosted here.
107 stars 48 forks source link

Custom client MSI missing branding logo after installation #239

Closed ZetaWaves closed 1 month ago

ZetaWaves commented 2 months ago

Custom client MSI missing branding logo after installation. The icon after installation is the default RustDesk icon, but should be the branded logo like the normal executable.

UPDATE: This is still a problem. I did a new build, still has regular icon and now the service isn't started after installation.

rustdesk commented 2 months ago

You can try install new msi on another machine, it is probably because of icon cache.

About service, how do you install? fresh install / repair / uninstall+install?

ZetaWaves commented 2 months ago

You can try install new msi on another machine, it is probably because of icon cache.

About service, how do you install? fresh install / repair / uninstall+install?

I uninstalled previous, then installed new one.

st0rm-cr0w commented 2 months ago

You can try install new msi on another machine, it is probably because of icon cache.

About service, how do you install? fresh install / repair / uninstall+install?

I've attempted the install on 3 different machines and I have the same issue. (Having an MSI is extremely helpful, since the deployment via GPO doesn't need the powershell script anymore) It has happened on:

The default RustDesk icon is shown in:

Otherwise, curiously, the custom icon is present on the top left of the executable's window once it's running.

rustdesk commented 2 months ago

Please help follow this https://www.howtogeek.com/687096/how-to-extract-an-icon-from-a-windows-exe-file/ to find out which one is default.

st0rm-cr0w commented 2 months ago

Please help follow this https://www.howtogeek.com/687096/how-to-extract-an-icon-from-a-windows-exe-file/ to find out which one is default.

The icon shown by IconViewer is the same as the one I use to generate the client, I think the issue could be in the Shortcut generation.

However, I am able to see using Orca and exploring the .MSI that the Icon table's binary data contains the default RustDesk icon. To reproduce this:

The resulting .ico is the default RustDesk icon. 2

When the MSI generates the shortcuts, it appears to use the Shortcut table, which in of itself references the AppIcon on the Icon_ column. 1

I don't have much experience with MSI generation, hopefully that helps a bit at least :) .

rustdesk commented 2 months ago

Thank you so much, you may find the cause, I will fix the msi icon.

fufesou commented 2 months ago

@ZetaWaves @alt-st0rm Hi, this issue is fixed. Please try again when you are free.

st0rm-cr0w commented 2 months ago

@ZetaWaves @alt-st0rm Hi, this issue is fixed. Please try again when you are free.

Thank you for the quick update :)

I generated a couple of clients, a fresh one and rebuilt one of the ones I already had:

Otherwise, I am able to correctly build, install and deploy the .msi without any issue.

Thanks for the fix!

fufesou commented 2 months ago

MSI Fails and returns error code 2753.

Can you please help reinstall with the command to find the error?

msiexec /i package.msi /l*v install.log

It will record the errors in install.log.

st0rm-cr0w commented 2 months ago

MSI Fails and returns error code 2753.

Can you please help reinstall with the command to find the error?

msiexec /i package.msi /l*v install.log

It will record the errors in install.log.

Certainly. I've attached it here.

-attachment deleted-

fufesou commented 2 months ago

@alt-st0rm Thanks

The error log says

DEBUG: Error 2753: The File 'App.exe' is not marked for installation. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: App.exe, , MSI (s) (C8:D0) [09:02:29:860]: Product: My-Remote-Support -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. The arguments are: App.exe, ,

You can delete attachments to avoid any private information being revealed.

I can't figure out why, but I found an answer that might help https://stackoverflow.com/a/64974912/1926020

I don’t know if the application with the same name was not totally uninstalled.

Can you please help check? Thanks.

fufesou commented 2 months ago

Maybe there are some clues in "Event Viewer" too

1714117924315
st0rm-cr0w commented 2 months ago

@fufesou I ran the tool listed in the stackoverflow link and it seems to have fixed it. When ran, it detected that the application was still installed somehow, I've also removed the files on AppData\Roaming to be sure and restarted the PC again. After all of this, it installed correctly.

As for the event viewer, I couldn't really see anything that the install.log didn't already tell us. msierror2

I'm not sure what happened, as you mentioned it may be possible it wasn't fully uninstalled for some reason.

fufesou commented 2 months ago

I've also removed the files on AppData\Roaming to be sure and restarted the PC again.

The data in AppData\Roaming should not affect.

Maybe restarting solves the issue.

Thanks for you help again.

rustdesk commented 2 months ago

@ZetaWaves @alt-st0rm msi still can not install the service? Do you run directly or via Ansible etc?

st0rm-cr0w commented 2 months ago

@ZetaWaves @alt-st0rm msi still can not install the service? Do you run directly or via Ansible etc?

I was able to install the MSI after the steps I mentioned above, ran it directly from the MSI and via GPO.

ZetaWaves commented 1 month ago

This has been resolved. Thank you.