MSFN Forum: Runonceex Background Image - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Runonceex Background Image Rate Topic: -----

#1 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 28 February 2005 - 01:23 AM

Is there a way to set a background image while RunOnceEx executes? I want to have something a little more spiffy than the default blue. Even a peice of software would work.

Thanks.

[EDIT]

Basically, a Windows equivilent of the Unix XV would be great. If you don't know what XV is then go here.

Any info, links, or leads will be GREATLY appriciated.

Thanks

[/EDIT]


#2 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 28 February 2005 - 02:52 AM

After much googling, I beleive that I found something. Something called IrfanView. It hosts a whole lot of command line options. The ones that I'm interested in is this format:

i_view32.exe "WallPaper to show" /wall /killmesoftly


As an added bonus, it supports a number of file formats. And it works *WITHOUT* explorer.exe running.

Download Link

All I did was just copy the contents of the program directory over to another computer and run it there. No registry settings and other BS required to run, so far. I need to burn a DVD to try it out and see how it works.

Later.

[EDIT]

After some experimitation, I have discovered that this program is self-contained. All you need is the .exe file. It does create a .ini file though for it's settings in the same directory, so maybe it would be a good idea to move the program to a writable medium such as a harddisk. More experimentation is warrented. I'll continue to post here as needed.

#3 User is offline   Gobelz 

  • Group: Members
  • Posts: 4
  • Joined: 25-February 05

Posted 28 February 2005 - 06:18 AM

Ok i think it's a good tool and it's better then a blue screen!!!

Where ya at the command to start it... I want to know that... TIA

#4 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 28 February 2005 - 11:27 PM

If I under stand your question, you wanted to know if I was at the command line when I started it?

And the answer is...

Yes, I was. As in the SECOND post above, this is the command line to use:

i_view32.exe "WallPaper to show" /wall /killmesoftly

I haven't burned a DVD yet, so I haven't tried it from the unattended install. I'm going to tonight once I get the install scripts for the applications finalized. I'll let you know then.

#5 User is offline   Gobelz 

  • Group: Members
  • Posts: 4
  • Joined: 25-February 05

Posted 01 March 2005 - 03:31 AM

Hmmz ok, but i got some pics with that app and i get that looped...
When i save that i get one .exe wich i can start and i get then the slideshow...
But i want to know where i get the line started with my .exe
in the cmdlines.txt? runonceex.cmd?? TIA

#6 User is offline   Orus 

  • Falcon-headed Lord of the Two Lands
  • Group: Members
  • Posts: 31
  • Joined: 18-February 05

Posted 01 March 2005 - 05:17 AM

Gobelz, on Mar 1 2005, 10:31 AM, said:

Hmmz ok, but i got some pics with that app and i get that looped...
When i save that i get one .exe wich i can start and i get then the slideshow...
But i want to know where i get the line started with my .exe
in the cmdlines.txt? runonceex.cmd?? TIA
<{POST_SNAPBACK}>

Good question :whistle:

#7 User is offline   FeTT! 

  • Vive le Québec!
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 10-January 05

Posted 01 March 2005 - 12:00 PM

remove by me

#8 User is offline   Orus 

  • Falcon-headed Lord of the Two Lands
  • Group: Members
  • Posts: 31
  • Joined: 18-February 05

Posted 01 March 2005 - 12:09 PM

FeTT!, on Mar 1 2005, 07:00 PM, said:

[Shell] 
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\MyTheme.theme"

<{POST_SNAPBACK}>

Would this work with a .msstyle file instad? I'm trying to get the xyz.msstyle installed and running at WinXP first start. I want the whole style to be applied, not just the wallpaper.

[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\xyz.msstyle"

TNX

#9 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 01 March 2005 - 01:49 PM

Maelstorm, on Feb 28 2005, 01:23 AM, said:

Is there a way to set a background image while RunOnceEx executes?  I want to have something a little more spiffy than the default blue.  Even a peice of software would work.

Thanks.

[EDIT]

Basically, a Windows equivilent of the Unix XV would be great.  If you don't know what XV is then go here.

Any info, links, or leads will be GREATLY appriciated.

Thanks

[/EDIT]
<{POST_SNAPBACK}>

Any reason you didn't edit the .Default registry hive?

#10 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 01 March 2005 - 04:06 PM

With the help of another member, I figured out how to get the screen resolution for i_view32.exe resize option. If anyone is interested, that thread is here. Attached below is a zip file that contains the vbscript utility to get the screen resolution and the batch file that rotates the images. My batch scripts use 2 parameters, the cd-rom drive and the basedir. So it looks like this:

basedir=%cdrom%\install
system-imagerotate.cmd %cdrom% %basedir%


So for the RegOnceEx, I use the following:

REG ADD %KEY%\002 /VE /D "Fork Image Rotator" /f
REG ADD %KEY%\002 /V /1 /D "START CMD.EXE /C %SCRIPTSDIR%\SYSTEM-IMAGEROTATE.CMD %CDROM% %BASEDIR%"


Notice that my start command does not have the /wait option. This allows the process to fork so that RunOnceEx continues while the batch runs in the background.

I currently have it set to rotate in 300 second intervals (5-min) on the repeat and 60 seconds for the initial, but this script should be easy to modify.

Oh, and one other thing, to allow the script to run, it checks to see if a file exists. That file is %SYSTEMDRIVE%\tmp\FLAG.TXT I used %SYSTEMDRIVE%\tmp because a software package that I'm installing requires it. If that file does not exist, then the script will exit without doing much of anything. I inputed this mechanisim so during the clean up, this file is removed and it causes the process to stop rotating images and terminate before explorer.exe loads.


Enjoy. :hello:

Attached File(s)



#11 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 March 2005 - 07:21 PM

So if I get it right, you are able to apply a background image while the RunOnceEx Process is running... not the background of the RunOnceEx Windows.

Can you post a screenshot?

#12 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 01 March 2005 - 08:53 PM

Incroyable HULK, on Mar 1 2005, 05:21 PM, said:

So if I get it right, you are able to apply a background image while the RunOnceEx Process is running... not the background of the RunOnceEx Windows.

Can you post a screenshot?
<{POST_SNAPBACK}>


Nope. I'm running it live on another machine from a DVD-RW.

Anyways, for some reason, it could not find start, which is a little weird because it's used elsewhere. I opened a command prompt from RegOnceEx and tried it manualy, and i_view32.exe aborted saying that it does not recongize the file header: Unknown file type. But, it works if I run it from the HD, even without explorer loaded, which is also strange.

I have to wonder if during RegOnceEx that certian DLLs that are involved with processing the image are not being loaded but are loaded later on by explorer, but that makes no sense since it works without explorer running.

Go figure.

I'm going to do some more troubleshooting and see if I can figure out what the problem with the software is. Is it calling a DLL resource that is not being loaded or what?

[EDIT]

Something else that I just discovered...
If I open a command prompt during regonceex and type the filename of one of the image files directly, Windows brings up the Picture and Fax viewer Furthermore, if I tell it to set it as the background from Picture and Fax viewer, it will set it as the background during the rest of RegOnceEx. I'm beginning to wonder if the problem is with i_view32.exe itself.

[EDIT]

Ok, it's definately a problem with i_view32.exe. From a command line during regonceex, it will not open the image because it says that it does not recongize the header... But, if I open the program normally and then open the same file, it accepts it and loads the imge just fine. It will even set the background image.

I'm going to see if I can locate a different program to do this. I'll post back to this thread when I have something.

[EDIT]

I have found another command line wallpaper changer, but it only works on BMPs. It was written by some guy over at Microsoft. It does seem to work, so I'll test it.

Oh, and that start not being found issue...It seems that start is an internal command to cmd.exe, so the command line now reads like this:

REG ADD %KEY%\002 /VE /D "Fork Image Rotator" /f
REG ADD %KEY%\002 /V /1 /D "%SYSTEMROOT%\System32\CMD.EXE /C START CMD.EXE /C %SCRIPTSDIR%\SYSTEM-IMAGEROTATE.CMD %CDROM% %BASEDIR%"

Yeah, I know it's redundant, but I want to make sure that the process forks off and detaches itself into the background so that runonceex can continue.

Something else. When I ran the DVD, after Java 1.50-01 installed, it rebooted the system? the command line that I was using is this:

START /WAIT MSIEXEC.EXE /passive /norestart /I %APPLICATIONDIR%\JAVA\JAVA15001.msi

I take it that there is some kind of problem as it seems that a number of people are having issues. I'm going to try this command line when I burn a new DVD:
START /WAIT MSIEXEC.EXE /passive /norestart /I %APPLICATIONDIR%\JAVA\JAVA15001.msi REBOOT=Suppress

It seems to work running off the DVD without explorer.exe running (no user interface, just a command window).

[EDIT]

Ok, the other command line utility does work, but only for bitmaps. I have yet to find a program that will work correctly on jpegs. For now, the only thing that I can do is use bitmaps. I'll try compressing the images into cab files and uncompressing them at runtime. The command line program is called setdesk.exe and it can be found here.

#13 User is offline   poster 

  • Newbie
  • Group: Members
  • Posts: 22
  • Joined: 24-February 05

Posted 01 March 2005 - 11:52 PM

Orus, on Mar 2 2005, 01:09 AM, said:

FeTT!, on Mar 1 2005, 07:00 PM, said:

[Shell] 
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\MyTheme.theme"

<{POST_SNAPBACK}>

Would this work with a .msstyle file instad? I'm trying to get the xyz.msstyle installed and running at WinXP first start. I want the whole style to be applied, not just the wallpaper.

[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\xyz.msstyle"

TNX
<{POST_SNAPBACK}>


i think it doesn't work but you can copy the luna theme, rename it and edit it. you will find where to change the msstyles thing

#14 User is offline   Maelstorm 

  • AT Field Pattern Blue
  • PipPip
  • Group: Members
  • Posts: 265
  • Joined: 22-July 04

Posted 02 March 2005 - 12:33 AM

Alanoll, on Mar 1 2005, 11:49 AM, said:

Maelstorm, on Feb 28 2005, 01:23 AM, said:

Is there a way to set a background image while RunOnceEx executes?  I want to have something a little more spiffy than the default blue.  Even a peice of software would work.

Thanks.

[EDIT]

Basically, a Windows equivilent of the Unix XV would be great.  If you don't know what XV is then go here.

Any info, links, or leads will be GREATLY appriciated.

Thanks

[/EDIT]
<{POST_SNAPBACK}>

Any reason you didn't edit the .Default registry hive?
<{POST_SNAPBACK}>


Because I want the images displayed during RunOnceEx setup. Editing the registry, to my knowledge, has no effect in this matter until after explorer starts up. Furthermore, the image files are jpg which requires a program to set the wallpaper.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy