Showing posts with label Portable. Show all posts
Showing posts with label Portable. Show all posts
Thursday, May 31, 2012
Microsoft AutoRoute 2001 Portable Launcher
I couple of months ago I dug up Mazda EPC2 Portable Launcher from my archives and shared it with you. Yesterday I dug up my old copy of AutoRoute 2001 and decided to try and make it portable. Since it worked I'll show you what you need to get it working for you, too :) Actually there are 2 tings you'll need - installation CD and my portable launcher (available in the Download section bellow). This time I followed the specifications posted by PortableApps.com platform :) Ok, let's get to the details:
1. Install your Microsoft AutoRoute 2001 on your computer.
2. Extract my portable launcher (download bellow).
3. Copy all the contents of AutoRoute to the App\AutoRoute folder from the extracted archive. You should have AutoRout.exe file in App\AutoRoute folder.
4. Uninstall Microsoft AutoRoute 2001.
5. Run the launcher and see if it's working :) Should be working. I tested this only on Windows 8 DP and CP, both 32-bit and 64-bit, but it should work on everything from XP and above.
6. Enjoy never installing AutoRoute 2001 again (if you still use it) :)
Downloads:
AutoRoute 2001 Portable
AutoRoute 2001 Portable Source
Tuesday, March 27, 2012
Darkness Beyond Limits
A couple of months ago I was keeping my monitor's brightness setting to the maximum and it was normal for me, even in the evening with the lights off. But things have changed a bit with those tablets around - now I'm used to much less brightness than my monitor's setting allows. I like Android with it's apps (like RootDim) that can control backlit and go beyond the limits. So I wanted an app for Windows that can do the same, as my minimum brightness was too bright for night reading - that's how Darkness Beyond Limits was born. Unfortunately, Windows cannot control monitor's brightness like Android can. The only thing you can do is simulate lower brightness, but this won't actually be backlit going darker :( Nevertheless, the result is satisfying - you get much dimmer screen :) There are two possible ways to achieve that and this app (written in Delphi XE, so if you want to make changes (yes, I provide the source code too) you'll need to install it) supports both of them. XE outputs quite big file, but it assures it's Windows 7 compatible, so I preferred it instead of Delphi 7. Darkness Beyond Limits is really easy to use - it has no options and no hotkeys to mess with your other hotkeys, just a tray icon. The main goal here is to be dead simple. The app will remember your last brightness setting and will apply it on startup. So, if you want to start it with Windows, just put a shortcut inside your Startup folder. I've tested Darkness Beyond Limits on 1 PC, 1 netbook and 1 laptop with Windows 8 DP, Windows 7 and Windows XP respectively. It works quite well. Also I've made some power consumption measurements (see bellow). So, how does those methods work? I'll give you an explanation with pros and cons - you decide which method to use:
Method 1 (Power):
This method uses a transparent black canvas over (almost) all of your applications, making them look darker.
Pros:
- You can get almost black screen
- Power consumption can go down a bit, depending on your screen
- Always works
Cons:
- May produce 100% usage of a core under XP and below
- Taskbar stays ontop when clicked once. This can be used as a pro when setting set too low, but otherwise it's pretty irritating. There is a workaround, but it's for Windows Vista and below - un-check "Keep taskbar on top of other windows" option in your taskbar properties.
Method 2 (Gamma):
This method uses Windows' gamma settings to simulate darker screen.
Pros:
- No 100% usage under XP as Power method
- No Taskbar ontop as Power method
Cons:
- Doesn't always work (depends on the drivers)
- Can't go as dark as Power
- No potential power consumption savings
- Improper shutdown of the app will result in brightness level not returning to normal until system reboot or by running again DBL
Netbook: Acer Aspire One AOA110 on Windows 7
Notebook: Asus X51L on Windows XP
PC w DBL: 29.6W
Netbook w/o DBL: 13.6W
Netbook w DBL: 13.6W
Notebook w/o DBL: 19.2W
Notebook w DBL: 37.5W
Note: All systems have their backlit set to minimum. Increased power consumption on Notebook is because of Windows XP using one core on 100% for DBL.
Source code
Method 1 (Power):This method uses a transparent black canvas over (almost) all of your applications, making them look darker.
Pros:
- You can get almost black screen
- Power consumption can go down a bit, depending on your screen
- Always works
Cons:
- May produce 100% usage of a core under XP and below
- Taskbar stays ontop when clicked once. This can be used as a pro when setting set too low, but otherwise it's pretty irritating. There is a workaround, but it's for Windows Vista and below - un-check "Keep taskbar on top of other windows" option in your taskbar properties.
Method 2 (Gamma):This method uses Windows' gamma settings to simulate darker screen.
Pros:
- No 100% usage under XP as Power method
- No Taskbar ontop as Power method
Cons:
- Doesn't always work (depends on the drivers)
- Can't go as dark as Power
- No potential power consumption savings
- Improper shutdown of the app will result in brightness level not returning to normal until system reboot or by running again DBL
Switching methods:
The default method is Power. If you want Gamma, after you've run DBL at least 1 time, open DarknessBeyondLimits.ini (should be next to the exe file you ran) and correct Gamma=0 to be Gamma=1. Save. Now when you start DBL it'll use Gamma method. System Tray icon will correspond to the method used.Systems:
PC: monitor Fujitsu Siemens P20-2 on Windows 8 Developers PreviewNetbook: Acer Aspire One AOA110 on Windows 7
Notebook: Asus X51L on Windows XP
Power Consumption (only on Power method):
PC w/o DBL: 31.3WPC w DBL: 29.6W
Netbook w/o DBL: 13.6W
Netbook w DBL: 13.6W
Notebook w/o DBL: 19.2W
Notebook w DBL: 37.5W
Note: All systems have their backlit set to minimum. Increased power consumption on Notebook is because of Windows XP using one core on 100% for DBL.
Conclusion:
As you can see from the graphics above, you can get less power usage, no change in it, or get a lot more of it. It really depends on your monitor. Some monitors use less energy when displaying black colors, so the darker the image is, the less power it consumes. If your monitor is not one of those, Power method will not increase power usage, unless you are using Windows XP, so if you are with XP I strongly recommend Gamma method for you. If you are energy saving maniac like me, use Power method (probably you won't be using XP, as it's draining more juice than 7, not to mention 8). If you prefer stability, use Gamma method.Download:
BinarySource code
Thursday, February 2, 2012
Mazda EPC 2 Portable Launcher
I've searched a lot around the net for a portable version of Mazda EPC (Electronic Parts Catalogue) 2, but didn't found anything, so I decided to do it myself (back in 2010). Installation of Mazda's EPC is really pain in the ass, not to mention you loose all of your History when reinstalling. Here I'll show you 3 things:
1. How to prepare Mazda EPC 2 to be ready for portable launching2. How to make your portable launcher.
3. Links to my portable launcher and source, in case you don't want to compile yourself (you still need to prepare the EPC though)
Ok, lets go!
Note: No PortableApps.com Format Specifications are met as there were none back in 2010. Still, this launcher works like a charm even in the latest PortableApps.com platform.
Part 1 (preparing Mazda EPC 2 to be ready for portable launching):
1. (Optional, but recommended) Install Windows on a virtual machine.
2. Install your Mazda EPC 2
3. Import all of your CDs in the same folder as your BIN folder.
4. On your PC (or on another PC, if you don't use virtual PC) create a folder to store your portable version of EPC. Inside of it create 2 folders - App and Data.
5. Copy all of your EPC files in App folder.
6. In Data folder create folder called Settings. In Settings folder you should put 2 files - borland.reg and MAZEPC.INI (this one I recommend you to get it from your own installation - it's stored in your Windows folder, e.g. C:\Windows)
End structure should be:
MAZDAEPC
- App
-- A1 (if you have this disk installed)
-- A2 (if you have this disk installed)
-- B1 (if you have this disk installed)
-- B2 (if you have this disk installed)
-- B3 (if you have this disk installed)
-- BACKUP
-- BIN
-- LOCAL
-- SAVE
- Data
-- Settings
7. Now prepare the launcher (part 2) or download it (part 3) and put it a side to your App and Data folders.
8. Run the launcher. You should get an error of a missing file. Go to the PC you installed Mazda EPC, find the file (typically in your System32 folder) and copy it inside your App\BIN folder (so it's next to mazdaepc.exe). Do this for all the files needed and in the end you should get Mazda EPC 2 protable running ;) I don't remember the list of files you need to copy, as I did this two years ago, but that's the way I've done it and it's working perfectly (tested on XP x86, Vista x64, 7 x86 and x64 and even 8 Developers Preview x64).
9. Enjoy!
Part 2 (writing and compiling the launcher)
1. Either install NSIS or download it portable from PortableApps.com
2. (Optional if you want icon) Either install IcoFX (or other icon editing software) or download it portable from PortableApps.com
3. Make a file called Mazda.nsi and paste the following code in it:
SetCompress force4. (Optional if you want icon) Extract mazdaepc.exe icon with IcoFX (or other icon editing software) and place it next to Mazda.nsi
SetCompressor /SOLID /FINAL LZMA
SetDatablockOptimize on
!include 'LogicLib.nsh'
!include "Registry.nsh"
Name "Mazda EPC2"
OutFile "MazdaEPC2Portable.exe"
VIProductVersion 1.0.0.0
VIAddVersionKey ProductName "Mazda EPC2"
VIAddVersionKey Comments "by metal03326"
VIAddVersionKey FileDescription "Launcher for Mazda EPC2"
VIAddVersionKey FileVersion 1.0.0.0
VIAddVersionKey ProductVersion 1.0.0.0
VIAddVersionKey LegalCopyright "Copyrights 2010"
CRCCheck off
SilentInstall silent
XPSTYLE on
Icon "Icon.ico" // Remove this line if you don't want Mazda's icon
Var AppDir
Var SETTINGSDIRECTORY
Section 'Main'
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\Settings"
StrCpy $AppDir "$EXEDIR\App"
ReadINIStr $0 $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "InstallPath"
StrCmp $0 "$AppDir" +2 0
WriteINIStr $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "InstallPath" "$AppDir"
ReadINIStr $0 $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "SavePath"
StrCmp $0 "$AppDir\SAVE" +2 0
WriteINIStr $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "SavePath" "$AppDir\SAVE"
ReadINIStr $0 $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "LocalPath"
StrCmp $0 "$AppDir\LOCAL" +2 0
WriteINIStr $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "LocalPath" "$AppDir\LOCAL"
ReadINIStr $0 $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "BkupDir"
StrCmp $0 "$AppDir\BACKUP" +2 0
WriteINIStr $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "BkupDir" "$AppDir\BACKUP"
${For} $R0 1 10
ReadINIStr $0 $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "DataPath$R0"
StrCmp $0 '' +4 0
StrCpy $R1 $0 2 #
StrCmp $0 "$R1,$AppDir\$R1" +2 0
WriteINIStr $SETTINGSDIRECTORY\MAZEPC.INI "ExecEnv" "DataPath$R0" "$R1,$AppDir\$R1"
${Next}
CopyFiles $SETTINGSDIRECTORY\MAZEPC.INI "$WINDIR\MAZEPC.INI"
IfFileExists $SETTINGSDIRECTORY\borland.bak 0 +5
Messagebox MB_YESNO|MB_ICONEXCLAMATION "Previous registry backup of 'HKLM\SOFTWARE\Borland' found. This maybe is caused by improper termination last time. If this is the case and the termination was done on this computer, please click 'Yes'. Do you want to use this backup before continuing?" IDYES +1 IDNO +3
DeleteRegKey HKLM "SOFTWARE\Borland"
nsExec::ExecToStack `"$WINDIR\system32\reg.exe" import "$SETTINGSDIRECTORY\borland.bak"`
Delete $SETTINGSDIRECTORY\borland.bak
ClearErrors
EnumRegKey $0 HKLM "SOFTWARE\Borland" 0
IfErrors 0 +2
Goto +5
nsExec::ExecToStack `"$WINDIR\system32\reg.exe" export "HKLM\SOFTWARE\Borland" "$SETTINGSDIRECTORY\borland.bak"`
Pop $R0
StrCmp $R0 '0' 0 +10
DeleteRegKey HKLM "SOFTWARE\Borland"
nsExec::ExecToStack `"$WINDIR\system32\reg.exe" import "$SETTINGSDIRECTORY\borland.reg"`
SetOutPath "$AppDir"
ExecWait "$OUTDIR\BIN\mazdaepc.exe"
Delete $WINDIR\MAZEPC.INI
IfFileExists $SETTINGSDIRECTORY\borland.bak 0 +4
DeleteRegKey HKLM "SOFTWARE\Borland"
nsExec::ExecToStack `"$WINDIR\system32\reg.exe" import "$SETTINGSDIRECTORY\borland.bak"`
Delete $SETTINGSDIRECTORY\borland.bak
SectionEnd
5. Compile Mazda.nsi with NSIS and you should get MazdaEPC2Portable.exe file next to Mazda.nsi
6. Place it next to App and Data folders from your prepared (part 1) Mazda EPC 2 portable and run it!
7. Enjoy.
Part 3 (download time!)
Here are links from previous 2 parts as well as links for the source code and the compiled launcher. Enjoy!
borland.reg
My MAZEPC.INI (I really recommend using yours)
Source code (Mazda.nsi)
Compiled binary (MazdaEPC2Portable.exe)
Subscribe to:
Posts
(
Atom
)


