PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Titan > Titan Development
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12 (permalink)  
Old 03-13-2008, 08:34 PM
stroths's Avatar
VIP & Master of my Domain
Offline
Pocket PC: HTC Evo 4g
Carrier: Sprint
Location: Dallas area
 
Join Date: Oct 2006
Posts: 1,370
Reputation: 2008
stroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIPstroths is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: AutoInstall Program (w/ Silent cab install)

If you want to get fancy, you could set it up to run automatically on boot. You need to create a folder on the SD card called 2577. You would then put your mortscript.exe, autorun.exe and autorun.mscr in that same folder. WM will automatically run the autorun.exe everytime you boot and anytime you insert the sd card. Here is my autorun.mscr and you will see how I got around it popping up a run dialog all the time. Note that I use mine to run tiermann autoinstaller, but you can modify to your needs.

My autorun.mscr

Code:
If ( RegValueExists("HKLM", "Comm", "NoRun") )
    Exit
EndIf

If (Question("Do you want to run Tiermann Autoinstall?","Install programs","OkCancel")=CANCEL)
    Message ("You will not be asked again.")
    RegWriteString("HKLM", "Comm", "NoRun", "NoRun")
    Exit
EndIf

RegWriteDWord("HKLM", "Comm", "AutoRunFlag", "0")
RegWriteString("HKLM", "Comm", "AutoRunCFG", "\Storage Card\2577\TAutoInstall\Config.txt")
RegWriteString("HKLM", "Comm", "AutoRun", "\Storage Card\2577\autorun.exe")

Run("\Storage Card\2577\TAutoinstall\tautoinstall.exe")
This script runs on every boot, but first looks for a registry key. If it doesn't exist, it will ask you if you want to run the installer. If you select no, it writes the key which prevents the popup on future boots.
__________________
Treo 600 -> Treo 650 ->Treo 700p -> Treo 700wx -> Mogul -> Touch Pro -> Touch Pro 2 -> HTC Evo
- [Guide] Get Root access & NAND Unlock your Evo (Full Root)
- My Current AppBrain List

Reply With Quote
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Titan > Titan Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 05:03 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com