Comment: Not volunteering but ... (Score 1) on 2010.07.03 18:10
Attached to: The next challenge for Perl on Windows (et al)
I did some stuff getting windows to launch perl stuff without user intervention on locked down corporate machines a couple of years ago or so. Here are my findings for reference. Some of this might be useful, but it might now.
Here's the appropriate incantation from vbscript to get a
Set fso = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & fso.GetParentFolderName(wscript.ScriptFullName) & "\perlshell.bat"& Chr(34), 0
Set WshShell = Nothing
And here's an ultra-crude "installer" designed for installing single cuser catalyst apps onto locked down corporate machines without admin access:
@echo off
set bindir=%~dp0
set bindir=%bindir:~0,-1%
mkdir "%APPDATA%\MyPersonalHomePage"
echo
echo Copying application to hard drive, please be patient
xcopy
echo
echo Creating link in startup folder
echo
mkdir "%APPDATA%\..\Start Menu\Programs\Startup"
Shortcut.exe
"%APPDATA%\MyPersonalHomePage\startmyphp.vbs"
echo Starting server, please be patient
ping 127.0.0.1 -n 10 -w 1000 > nul
start http://127.0.0.1:35900/
