Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
roseapple0803 opened this issue Feb 4, 2020 · 0 comments

Comments

@roseapple0803
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant