I built a small AutoIt Script which basically copies over redshiftg.ini temporarily; runs app; then removes the footprint.
Tested on Windows 7 Ultimate & XP Pro PortableApps 4.1
Assuming your "portable" drive is "P:" (I use 2nd Sata for portable apps to keep SSD OS Drive & registry, etc. cleaner)
P:\PortableApps\
P:\PortableApps\(CUSTOM)RedShiftGUI\App
P:\PortableApps\(CUSTOM)RedShiftGUI\App\AppInfo
P:\PortableApps\(CUSTOM)RedShiftGUI\App\AppInfo\appinfo.ini
P:\PortableApps\(CUSTOM)RedShiftGUI\App\AppInfo\appicon.ico
P:\PortableApps\(CUSTOM)RedShiftGUI\Data
P:\PortableApps\(CUSTOM)RedShiftGUI\Data\redshiftg.ini
P:\PortableApps\(CUSTOM)RedShiftGUI\Data\redshiftgui.exe
P:\PortableApps\(CUSTOM)RedShiftGUI\Data\RedShiftGUILoader.exe
appinfo.ini contents:
Code: Select all
[Format]
Type=PortableAppsFormat
Version=2.0
[Details]
Name=RedShiftGui
AppId=RedShiftGui
Publisher=RedShiftGui
Homepage=https://github.com/maoserr/redshiftgui/downloads
Category=Development
Description=Redshiftgui changes the color temperature of your monitor to better match that of your surrounding. This means that it sets a cooler color temperature during the daytime (due to natural lighting) and sets a warmer temperature at night (due to indoor lighting). Similar to f.lux, this is a GUI port of the redshift project.
Language=Multilingual
[License]
Shareable=true
OpenSource=true
Freeware=true
CommercialUse=true
[Version]
PackageVersion=0.0.2.1
DisplayVersion=2.1
[Control]
Icons=1
Start=Data\RedShiftGUILoader.exe
AutoIt RedShiftGUILoader.au3 contents:
Code: Select all
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=G:\PortableApps\(CUSTOM)RedShiftGUI\App\AppInfo\appicon.ico
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=Copyright © 2012 Page2PagePro.com
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;; ############################################################################
; Terminate Running Siblings
While ProcessExists("redshiftgui.exe")
ProcessClose("redshiftgui.exe")
Sleep(500)
WEnd
; Copy ini file to PC
FileCopy(@ScriptDir & "\redshiftg.ini", @AppDataDir & "\redshiftg.ini")
; Run App
Run(@ScriptDir & "\redshiftgui.exe", "", @SW_HIDE)
; Wait for App to Load
; Sleep(5000)
ProcessWait("redshiftgui.exe");
; Remove ini file from PC
FileDelete(@AppDataDir & "\redshiftg.ini")
Exit
Complete Bundle Here
And of course replace redshiftg.ini with the your own - or adjust latlon=30.266900:-97.742800 (Austin, TX)
-GC