ficonsulting / ficonsulting/RInno
IPersistFile: Save error when installing shiny app without admin privileges
- Dominant language
- HTML
- Stars
- 313
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
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
```

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

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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.