ficonsulting / ficonsulting/RInno

File not found in run.wsf

Open
#42 22 comments 0 reactions 0 assignees View on GitHub
bug help wanted irreproducible
Dominant language
HTML
Stars
313
Forks
66
PR merge metrics
No merged PRs in 30d

Description

After creating an app with `compile_iss` I can't get the `.bat`-file to run. The problem seems to be with the `run.wsf`-script where a file is not found. I get a javascript runtime error on line 25, with code "800A0035" and message "file not found".

![image](https://user-images.githubusercontent.com/8194990/34482404-1385d708-efb8-11e7-9d0a-20e8444f094e.png)

I got the same error message when I tried with the Cran-version of RInno (0.1.2), so this migth not be a specific problem for RInno 0.2.0. It could also be that I have done something else wrong.

The app on itselft runs fine (from RStudio).

Any idea what the issue migth be?

I'm running R-version 3.4.3 on a Windows 7 x64 computer. Script below.

**EDIT:** After checking the `run.js`-script I'm guessing the problem is related to the loading of the registry paths (line 25 tries to open/read `utils/regpaths.json`). There is no such file in my app's `utils`-folder. I found [this](https://github.com/ficonsulting/RInno/issues/23) previous issue, but not sure if it is related to mine. It could of course be a problem with finding the path to Chrome, Firefox etc., but I wonder why the file isn't created in the first place.

My operating system and browser is btw in norwegian. If that could be a problem?

```# Use install_github to get RInno
require(devtools)
devtools::install_github("ficonsulting/RInno", build_vignettes = TRUE, force = TRUE)

# Require Package
require(RInno)

# Use RInno to get Inno Setup
RInno::install_inno()

# Example app included with RInno package
setwd("C:/Users/username/Documents/Test")
example_app(wd = getwd())

# Build an installer
create_app(app_name = "Your appname", app_dir = "app")
compile_iss()```

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.