ficonsulting / ficonsulting/RInno

IPersistFile: Save error when installing shiny app without admin privileges

Open
#145 0 comments 0 reactions 0 assignees View on GitHub
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
```
![image](https://user-images.githubusercontent.com/7564182/73769174-202ec000-4772-11ea-9220-37b8709266a4.png)

```
Creating shortcuts...
C:\Users\Public\Desktop\Your appname4.lnk
IPersisteFile:Save failed
Access is denied
```
![image](https://user-images.githubusercontent.com/7564182/73769299-59673000-4772-11ea-993f-b76889d1f09f.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.