Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WPI not closing

Featured Replies

Hello

Platform | Windows 2003 Standard x64

I am a bit new to WPI but have found it intuitive none the less and very useful.

However I have one problem so far, after the install has finished the WPI window stays open with no option to close as seen in the screenshot.

Is there an option I can use to display a Close button?

How is this handled normally?

I also have the option for the server to restart once installation is complete but this does not seem to work.

Any help would be appreciated

post-223167-1243857905_thumb.jpg

  • Author

I do have an exit and the script does execute and then exit fully.

Here is the code with the exit in it

@ECHO OFF
TITLE AMS Install
COLOR 0F

FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\WIN51AS.SP2 (SET CDROM=%%I:& GOTO DONECD)
:DONECD


ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO -----------------------------------
ECHO.
ECHO Creating Partition E
ECHO.
ECHO -----------------------------------
ECHO.
start /wait %CDROM%\WPI\Install\AUTO\Partition\createpart.bat

cls

ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO -----------------------------------
ECHO.
ECHO Create Folders on E
ECHO.
ECHO -----------------------------------
ECHO.
start /wait %CDROM%\WPI\Install\AUTO\Partition\createfolder.bat

cls

ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO -----------------------------------
ECHO.
ECHO Change Default Install Location
ECHO.
ECHO -----------------------------------
ECHO.
REGEDIT /S "%CDROM%\WPI\Install\AUTO\RegTweaks\ProgramFilesLoc.reg"

CLS

ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO -----------------------------------
ECHO.
ECHO Allow RDP
ECHO.
ECHO -----------------------------------
ECHO.
REGEDIT /S "%CDROM%\WPI\Install\AUTO\RegTweaks\allowrdp.reg"

CLS

EXIT

  • Author

Here is the log

WPI Installation Log File

Install process started at: 01 June 2009 12:54:34

WPI information:
Version=7.5.0
Internet Explorer version=7.0
Internet Connection=false

Operating System
Operating System=03
Edition ID=Standard Edition
Service Pack=2

Architecture
Architecture Name=GenuineIntel
Architecture Name String=Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Architecture ID=EM64T Family 6 Model 15 Stepping 8
Number Of Processors=1
MHz=2128
Architecture Type=x86
SysArch6432=AMD64
Architecture Bits=64
True 64 Bits=false

Options file=D:\WPI\WPIScripts\useroptions.js
Config file=D:\WPI\WPIScripts\config.js

// Window tab
Resolution=0
MainWindowWidth=800
MainWindowHeight=600
MainWindowX=-1
MainWindowY=-1
InstallerWindowX=25
InstallerWindowY=25

// Interface tab
ShowToolTips=true
UseTransitions=false
IndentText=false

// Style tab
Theme='Windows'
RandomTheme=false
BgPicture=''

// General tab
Configurations=['']
ShowMultiDefault=true
CheckOnLoad='default'
NumCols=3
// ---
SortOrder=['All Servers,HP Server,Agresso,SQL Server']
// ---
Timer=false
Seconds=60
StartBeepAtSecs=10
// ---
ShowExtraButtons=true
DoNotShowIfCD=true
USSFSilentMode=false
VerifyInstallHDD=false
AllowCheckForInternet=false
LoadDesktopBeforeInstall=false
ReOpenAfterInstall=false
DisableCatCheckBoxes=false
SortWithinCats=false
DisableOnDepsNotMet=true
AlwaysUseScrollBar=true
DontSplitCats=true
InstallByCategory=false
ReallyForce=false
DisableIfDoGray=false
InstallFonts=false
ShowCommandInInstaller=true
// ---
DefaultInstallPath='default'
CustomInstallPath=['']
// ---
Language='en'

// Audio tab
PlayAudioInInstaller=false
InstallAudio=['']
Volume=75
Shuffle=false
CopyAudioFolder=false
CopyAudioPath=['%systemdrive%\WPI_Audio']
DeleteAudioFolder=false

// Tools tab
MonitorResolution=0
MonitorDepth=0
MonitorRefresh=0
// ---
ExecuteBeforeEnabled=false
ExecuteBeforebit4=false
ExecuteBefore=['']
ExecuteAfterEnabled=false
ExecuteAfterbit64=false
ExecuteAfter=['']
// ---
RestartComputer=true
RestartType=0
RestartSeconds=30
DoNotLoadDesktop=false
// ---
LogInstallation=true
LogPath=['%systemdrive%\WPI_Log.txt'];
TimeStampLogFile=true

Global variables:
%OSLANG%=ENU
%WPIPATH%=D:\WPI
%ROOT%=D:
%CDROM%=
%DOSPATH%=
%SYSTEMDRIVE%=C:
%WINDIR%=C:\WINDOWS
%PROGRAMFILES%=C:\Program Files (x86)
%TEMP%=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
%SYSDIR%=C:\WINDOWS\system32
%ALLUSERSPROFILE%=C:\Documents and Settings\All Users
%USERPROFILE%=C:\Documents and Settings\Administrator
%APPDATA%=C:\Documents and Settings\Administrator\Application Data
%COMMONPROGRAMFILES%=C:\Program Files (x86)\Common Files

List of programs to be installed:
REGTWEAKS (Must be installed for AMS Sites)

1 Items, 1 Commands

-----

01 June 2009 12:54:36
Program: REGTWEAKS (Must be installed for AMS Sites)
Unique ID: REGTWEAKS
Order: 000001
Category: HP Server
01 June 2009 12:55:29 - cmd1 Success (returned code 9009): "D:\WPI\Install\AUTO\START2003.BAT"
01 June 2009 12:55:30 - Finished installation.

-----

Number of failed installations: 0

Install process finished at: 01 June 2009 12:55:30

Looks fine. Put

CMD \C

in front of the script and see what it does.

  • Author

Its not only this script it doesnt close down on its even after a software install i.e. acrobat 6 etc..

I can try CMD \C if you still think it will make a difference

I will confirm the version of WPI as well when I am back in work on Monday but it was very recently I downloaded it.

Since you are on Windows 2003, it may be a permission issue.

And I meant

CMD /C "D:\WPI\Install\AUTO\START2003.BAT"

Edited by mritter

  • Author

I mean its not a big deal as I know it works perfectly on XP, Vista and Windows 7.

I am logged on as the local admin so permissions shouldn't be an issue.

Which command closes WPI? Maybe for my 2003 disks I can force it to be called any time an installation is done through WPI?

Change this in WPIScripts\core.js

function Pause(secs,milli)
{
position="core.js";
whatfunc="Pause()";

var duration, sleepCmd;

duration=(secs*1000)+milli;
sleepCmd='"'+wpipath+'\\Tools\\Sleep.exe" -m '+duration;
SleepShell.Run(sleepCmd,0,true);
}

to

function Pause(secs,milli)
{
position="core.js";
whatfunc="Pause()";

var duration, sleepCmd;

duration=(secs*1000)+milli;
sleepCmd='cmd /c "'+wpipath+'\\Tools\\Sleep.exe" -m '+duration;
SleepShell.Run(sleepCmd,0,true);
}

It may work, it may do nothing. Something to try.

  • Author

Changing that line actually breaks WPI with the following error, nothing happens after this

post-223167-1244466196_thumb.jpg

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.