MSFN Forum: WPI 7.8.0 Feature requests. - MSFN Forum

Jump to content



  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

WPI 7.8.0 Feature requests. Rate Topic: -----

#41 User is offline   deadbug 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 30-June 05

Posted 26 September 2009 - 02:05 PM

View Postmritter, on Sep 26 2009, 06:46 PM, said:

If you have ANY ideas/requests/complaints, now is the time to post them. v8.0.0 is going to be a MAJOR release. So big I am jumping 2 versions.


Well, since you asked :whistle: ...

I cannot get {EXTRACT} to work if the target has a space in the path:

 
'{EXTRACT} %CDROM%\\DVD-Apps\\FlexRena80.rar "%ProgramFiles%\\Flexible Renamer\\"' 


The above helpfully extracts to C:\Program ...

Maybe I've goofed somewhere, but if not, fixing that would allow be to package up some installers as .7z archives and drop them into the right place in one fell swoop.

There's a {FILECOPY} and a {FILEMOVE} but only a {DIRCOPY} ... {DIRMOVE} would save a subsequent {DELDIR}.

I also fiddle about in the menus a bit and NirCmd makes this easy with shorthand like this:

 
'%CDROM%\\DVD-Tools\\nircmd.exe execmd mkdir "~$folder.common_programs$\\Utilities"' 


I could (I guess) define some environment variables with setEnv at start of day, but it would be nice to have (say) %MENU_COMMON_PROGRAMS% and %MENU_PROGRAMS% (etc.) available for the duration without having to create them myself via some contrived entry. Failing that somewhere to place "user created definitions" would be good. (I thought there used to be somewhere, but I cannot find it right now!).

Cheers


#42 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 30 September 2009 - 12:22 PM

I would like to see user defined command-types (like configurations).
With a checkbox for each type on the left side of WPI.

e.g. I want to declare some commands as cleanup-commands and want to enable/disable them before I start the install-process.

Al

#43 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 30 September 2009 - 07:26 PM

Al,

You are going to have to email me some examples. That post is way too vague to get what you mean.

#44 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 01 October 2009 - 01:22 AM

1. I want to define some command-Types: e.g. Cleanup, Registration, Settings
2. each command-type should get a configurable default-value (enabled/disabled)
3. I want to be able to set a command type on each command
4. for each command-type a checkbox should be displayed in the main-WPI-window to enabled/disable them

Example:
I want to define the types Cleanup, Registration and Settings, where cleanup is disabled by default.
No I set the types on each command I want:
"!CD!\Firefox Setup 3.5.3.exe" -ms -ira
[Settings] XCOPY /Y "!CD!\user.js" "%PROGRAMFILES%\Mozilla Firefox\defaults\profile\"
[Cleanup] @"%ROOT%\Tools\eMove.cmd" "Mozilla Firefox" "Internet"
[Cleanup] @DEL /Q "%ALLUSERSPROFILE%\Desktop\Mozilla Firefox.lnk"
[Cleanup] @DEL /Q "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Mozilla Firefox.lnk"

msiexec /i "!CD!\ExpressoSetup3.msi" ADDLOCAL=ALL REBOOT=ReallySuppress /passive /norestart /qb
[Registration] "%ROOT%\Tools\REG.EXE" IMPORT "!CD!\register.reg"
[Cleanup] @"%ROOT%\Tools\eMove.cmd" "Expresso" "Development"


Now can enable or disable each command-type on the main-WPI screen and if I press install all commands with checked command-types or without declared command-types will be executed.

Al

#45 User is offline   TwoJ 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 01-March 05

Posted 11 October 2009 - 09:28 AM

Hi mritter & Kel

We'll if its going to be a major release, i would like to put in a request i mentioned before
Is there a way to set up multiple condition statements?

I use wpi a lot now for keeping software up-to-date, so all the recent wmi calls are great to determine the version of installed software, but what would be great is if i could do something like
ifSoftwareVersion(<2.0) then GreyedCondition='Red' & InstallCondition="Required"
ifSoftwareVersion(>2.0 & <3.0) then GreyedCondition = 'yellow' & InstallCondition = "Recommended"
ifSoftwareVersion(== 3.5) then GreyedCondition = 'green' & InstalledCondition = 'Not required'

Not sure how difficult this would be to implement or how, but do you think it would be useful?

thanks

#46 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 12 October 2009 - 01:06 PM

Al: Wouldn't it just be easier to make a Cleanup category (and others) and check/uncheck what you want? And make it a Configuration so can select them automatically.


TwoJ: That would be very hard to change. I see your point and like the idea, but, not going to happen any time soon.

#47 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 12 October 2009 - 01:57 PM

Maybe I could do this with sub-items but therefor I would need at least 3 WPI-entries for each app (install, registration/settings, cleanup) and have to select/deselect them for each app.

So I would globally enable/disable them.

Al

#48 User is offline   tikyreol 

  • Group: Members
  • Posts: 2
  • Joined: 01-September 08

  Posted 16 November 2009 - 07:27 AM

Hi from Romania

I'd like to see a button for importing the description for an application from a text file / pad file when adding it, and I'd also like to be able to preview (screenshots) of applications when clicking on their names maybe in the side panel (under the menu). So, two buttons in the add installer dialog.

Or is it possible to do this by using HTML in the description ?

I haven't had time to try WPI yet because I'm selecting from hundreds of software, and maybe these "features" already exist, so forgive me if so, but I didn't see them in the help files / screenshots.

I was recently thinking about building my own post installer when I thought about trying WPI. I had seen it in a custom windows setup disc years ago and it was very buggy (a double click on the window and it would disappear). But the new version seems great.

Congratulations, and thank you a lot. I'm using Kelselenelvian's dll and explorer addons packs in the windows unattended setup too.

"I'll be back"

#49 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 17 November 2009 - 08:15 PM

You can do all of that via ToolTips. Enter your description like normal. For screen shot, use that on the Picture tab. Doesn't have to be the program's logo, can be anything, like a screen shot.

#50 User is offline   tikyreol 

  • Group: Members
  • Posts: 2
  • Joined: 01-September 08

  Posted 20 November 2009 - 09:52 AM

Wow thank you, I've read your post immediately two days ago but I was still busy doing silent installers. It seems a lot of the best software is not made to silent install :( and unfortunately many install stupid things automatically and those have to be removed, so I still have a lot of work to do.

I've just opened WPI for the first time and saw that you're right, WPI is great :D. Well after clicking on the Load button for the html/description file the user interface went a little up and the tabs were no longer visible so not perfect.. Why does WPI have to be a HTA X(

However, it's not the first time I see your name mritter (though I'm not sure where, you must have done something good) and I appreciate the "help". If only these installers didn't give me a headache!

I'll be back :P

#51 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 20 November 2009 - 10:30 AM

Yeah, the Load button issue slipped through. They are fixed now.

HTA: I didn't create WPI, just took over the programming 3+ years ago. It was just a "simple" script when first created, but I have done my best to advance it. By being an HTA it doesn't have to run in a browser, can use more Windows' features than just plain JavaScript can. An HTA can do just about anything a compiled program can. And it has always been open source.

#52 User is offline   wazer 

  • You gotta risk it to get the biscuits
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 24-May 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 November 2009 - 06:18 AM

View PostKelsenellenelvian, on Sep 15 2009, 02:43 AM, said:

Wazer=

#1 WPI can set the volume of windows via the audio player tab. (I believe it does this globally, not just for WMP)

#2 Thats why there is a "Default" option. It will set it as told by windows and your system what is the best defualt for your setup. I always use the Resolution and Color Depth section but I NEVER set the refresh rate with it...

#3 It used to be that way but the way it was made it so people kept screwing up and not saving their settings. This way you have the option to either back-out and not save settings or to save settings and then backout. (Maybe mritter can make the suggestion of yours an option, But don't quote me.)

#4 cscript.exe is in windows 2000\sp4 and above. As WPI no longer supports The "Legacy" OS's we will not add it. (For older os's please see WPI Classic and add it in as a filecopy option.)



The volume is not global afaik. Tested 3 times :)

#53 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 November 2009 - 03:06 PM

Hi.

Thank you for WPI v7.7.0.

I would like to request the ability to redirect the stdout of a command from a console application.

For example, if I add the following command
taskkill /? >c:\taskkill.txt

I would have expected taskkill.txt to contain the stdout of the command "taskkill /?".

With v7.7 it seems that the redirection character and filename are interpreted as a command line parameter and causes the console application to not run correctly. (taskkill.txt does not get created)

Are there any current work-arounds?

Thank you.

This post has been edited by icnocop: 21 November 2009 - 03:07 PM


#54 User is offline   djackson 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-January 05

Posted 21 November 2009 - 06:30 PM

Hi,

Would it be possible to add a {CHANGEDIR} command, to set the current working directory?

Cheers!

#55 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 21 November 2009 - 09:15 PM

icnocop:

cmd /c taskkill /? >c:\taskkill.txt

and update this function in core.js

function ReplacePath(v)
{
	position="core.js";
	whatfunc="ReplacePath()";

	var i, rs=new String(v);

	rs=rs.replace(/%wpipath%/gi, wpipath);										// Replace WPI's special environment variables
	rs=rs.replace(/%root%/gi, root);											// WPI parent folder

	if (hdd=="")
		rs=rs.replace(/%cdrom%/gi, cddrv);										// started from cdrom
	else
		rs=rs.replace(/%cdrom%/gi, hdd);										// not started from cdrom

	rs=rs.replace(/%sysdir%/gi, sysdir);										// same as before
	rs=rs.replace(/%dospath%/gi, dospath);										// new variable
	rs=rs.replace(/%oslang%/gi, oslang);										// operating system language code
	rs=rs.replace(/%userprofileroot%/gi, userprofileroot);						// root of user folders

	rs=rs.replace(/%comma%/gi, ',');											// Put a comma in command line
	rs=rs.replace(/&amp;/gi, '&');												// Put an ampersand in command line
	rs=rs.replace(/&gt;/gi, '>');												// Put a greater than in command line

	// Replace other (standard) environment variables (either global or defined in the process calling WPI)
	var envarname, envvars=rs.match(/%[^ %\f\n\r\t\v]+%/gi);					// find ALL substrings enclosed in '%' and not containing '%' itself or a white space character
	if (envvars)																// if any match
	{
		for (i=0; i<envvars.length; i++)										// loop on the matches
		{
			envarname=envvars[i].substring(1, envvars[i].length - 1);			// strip the match from its enclosing '%'
			rs=rs.replace(envvars[i],WshEnv(envarname));						// replace it by the corresponding env var
		}
	}

	return rs;
}


#56 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 21 November 2009 - 09:18 PM

djackson:

Why do you want to change directories? WPI is not running in command line environment, so I really doubt it could be done. But give me some details so I know what to check into.

#57 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 21 November 2009 - 09:23 PM

deadbug:

Did I ever get with you on the {extract} question you posted? You MUST supply quotes for both source and destination:

{EXTRACT} "C:\MyFile.zip" "C:\Folder\Folder\"

#58 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 21 November 2009 - 09:25 PM

sqtrwe:

I added your request for the Read Me button. If ReadMe.txt exists in the WPI root the button will be displayed above Begin Install. The file is opened in a window.

#59 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 November 2009 - 06:40 PM

Thank you very much mritter,

This is great work!

However, I found two (low priority) issues:

1. for this to work with wpi 7.7.0, I had to delete the following line:
rs=rs.replace(/%userprofileroot%/gi, userprofileroot); // root of user folders

(I figure this is probably something new for wpi 7.8.0)

2. it does not work if the program I want to execute has quotes around it or one of its command line parameters (if there is a space in the name for example).

For example, the following command does not work as expected

cmd /c "D:\some\path\on\dvd\app.exe" "param1" >c:\app.txt

It produces 'D:\some\path\on\dvd\app.exe" "param1' is not recognized as an internal or external command, operable program or batch file.

However, if I remove the quotes, it works as expected:

cmd /c D:\some\path\on\dvd\app.exe "param1" >c:\app.txt
and\or
cmd /c D:\some\path\on\dvd\app.exe param1 >c:\app.txt

I do not have a long path name just yet, so this work around works great for me, so this may be another request in the future.

I also tried testing escaping the quotes like so
cmd /c "\"D:\some\path\on\dvd\app.exe\" \"param1\"" >c:\app.txt
and
cmd /c "\"D:\some\path\on\dvd\app.exe\" \"param1\" >c:\app.txt"
but they both produced a similar error as before.

Thanks again.

This post has been edited by icnocop: 07 December 2009 - 04:56 PM


#60 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 25 November 2009 - 07:51 AM

Oops. That variable is defined in globals.js. No big deal since you don't use it.

Will look into the quotes.

Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • 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