tisn05 / sk1

Automatically exported from code.google.com/p/sk1
Other
0 stars 0 forks source link

Windows Inkscape Patch Script Permissions Issue #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run inkscape-patch.vbs
2. Select inkscape install folder
3. Error: Insufficient permission line 44 char 7.

Easy solution: force script to run as administrator.

Modification of /UniConvertor-1.1.5/inkscape-patches/inkscape-patch.vbs:
---BOF---
+Set WshShell = WScript.CreateObject("WScript.Shell")
+If WScript.Arguments.length = 0 Then
+    Set ObjShell = CreateObject("Shell.Application")
+    ObjShell.ShellExecute "wscript.exe", """" & _
+      WScript.ScriptFullName & """" &_
+      " RunAsAdministrator", , "runas", 1
+Else
+
='First message dialog'
.
.
.
=
=End If
=
+End If
=
=Wscript.Quit
---EOF---

Original issue reported on code.google.com by t...@x-remodel.com on 26 Jun 2015 at 7:04

Attachments: