ficonsulting / RInno

How to install local shiny apps
https://ficonsulting.github.io/RInno/
Other
307 stars 67 forks source link

IPersistFile: Save error when installing shiny app without admin privileges #145

Open roseapple0803 opened 4 years ago

roseapple0803 commented 4 years ago

During an installation of a RInno generated shiny application performed by a user without administrator privileges the installer will generate two IPersistFile: Save errors. One when attempting to create the start menu link and another when attempting to create the desktop shortcut link.

Creating shortcuts...
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Your appname4.lnk
IPersisteFile:Save failed
Access is denied

image

Creating shortcuts...
C:\Users\Public\Desktop\Your appname4.lnk
IPersisteFile:Save failed
Access is denied

image

These are caused by the paths generated by the Inno administrator specific variables commonprograms and commondesktop, which refer to locations visible to all users, not just the current user. These can be replaced by autoprograms and autodesktop which will adjust automatically depending on the privilege level.

Search this page for Auto Constants. http://www.jrsoftware.org/ishelp/index.php?topic=consts