Auto register HTA file?
#1
Posted 08 July 2005 - 06:03 PM
#2
Posted 08 July 2005 - 06:08 PM
#3
Posted 08 July 2005 - 06:17 PM
start "" C:\WINDOWS\system32\mshta.exe "wpi.hta"
Sort of thing...
#4
Posted 08 July 2005 - 06:32 PM
This post has been edited by kelsenellenelvian: 08 July 2005 - 06:44 PM
#5
Posted 08 July 2005 - 06:54 PM
REM Start WPI and wait for its end
start /wait WPI.hta
with
REM Start WPI and wait for its end
start "" C:\WINDOWS\system32\mshta.exe "wpi.hta"
I could be way off or even set the wrong path.
but unsure if its the wpi.cmd file to edit
Remember I know nothing I'm just starting to soak in small amounts of info you are all trying to share.
This post has been edited by lionhrt: 08 July 2005 - 06:57 PM
#6
Posted 08 July 2005 - 07:16 PM
This post has been edited by kelsenellenelvian: 08 July 2005 - 07:16 PM
#7
Posted 08 July 2005 - 07:55 PM
start "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"
works. MSHTA needs the full path to the wpi.hta file. %CD% is "current directory" and should work in most instances, unless calling the CMD file from another directory. If it runs via Autorun.inf, then it will be fine. Another method, though I'm not sure of how it would work is .\
This is just a work around to the registry problem, because of rights restrictions and such.
Also, C:\Windows = %systemroot% and %windir%. I don't believe %systemroot% is available on a 9x system, but %windir% should be.
#9
Posted 08 July 2005 - 08:38 PM
may want to edit your post http://www.msfn.org/...showtopic=50304 that a solution has been found.
Not that you dont already know kelsenellenelvian to do so.
So all I would have to do is make a cmd file from this solution and place it where
#11
Posted 08 July 2005 - 09:24 PM
So I throw this in at the end of my massive reg to get that referer back:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.hta] @="hta_auto_file" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\hta_auto_file\shell\open\command] @="\"C:\\WINDOWS\\system32\\mshta.exe\" \"%1\""
I thought better clutter your post a bit if there is someone out there experience
same problem.
#13
Posted 08 July 2005 - 09:27 PM
but its nice to see a work around for the prob,, nice addition to the setup cmds
This post has been edited by Lost Soul: 08 July 2005 - 09:28 PM
#14
Posted 08 July 2005 - 09:36 PM
Lost Soul, on Jul 9 2005, 05:27 AM, said:
but its nice to see a work around for the prob,, nice addition to the setup cmds
<{POST_SNAPBACK}>
No, I don't have IE...just the core
..but many ppl believe you actually need IE browser...wich is not true.
This post has been edited by Clint: 08 July 2005 - 09:39 PM
#15
Posted 08 July 2005 - 09:39 PM
REM Start WPI and wait for its end
start /wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"
???
What no one to tell me if this is what you do. hehe
Ya I know wait your turn.
This post has been edited by lionhrt: 08 July 2005 - 11:04 PM
#16
Posted 08 July 2005 - 11:14 PM
i should point out, that the CMD method i put above could get tricky depending on how you call the CMD.
If you're someone who calls the CMD via CMDLINES.TXT, then the %CD% isn't the proper directory anymore, and you must know the complete path to the HTA file. If it's executed via Autorun.inf, it works fine.
I could make it more complicated to find out the drive lettering and such, but then it owuldn't work on Win9x.
I suggested the CMD trick primarily for reasons of system lockdown. If you go the registry method, the paths to the actual executable may not be right
#17
Posted 09 July 2005 - 02:24 AM
#18
Posted 09 July 2005 - 07:17 PM
so basically all I have in my root are the files that are stored in the main wpi download. modified useroptions.js and config.js and folder representing all my reg files/graphic thumbs for the descript box and install folder when I stored all my exe files, but other then that nothing else has been changed.
So i guess if autorun is enabled as with my xp box then it calls the autorun.inf which calls the wpi.cmd and loads the wpi.hta.
I run everything off the dvd which i dont believe is setup to copy everything onto HD first then install.
So what would be my step to create a file that will load wpi on a win98 machine that is not autorun enabled. and would I place that file whether it be a cmd gile into the root of the cd and would I have to change the autorun.inf to load this file instead of the wpi.cmd.
Thanks for everything.
I know its a lot but the whole process is to learn and to teach. Hope one day I can be here to teach.
lionhrt
#19
Posted 09 July 2005 - 07:24 PM
#20
Posted 09 July 2005 - 07:49 PM



Help

Back to top









