Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[Feature] SetAppAsDefault

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Francesco

Francesco

    Advanced Member

  • Member
  • PipPipPip
  • 410 posts

In configwizard.js after

CommandsMenuBar.addNewChild("jscript_system", 10, "jscript_ErrorReporting", "ErrorReporting()", false, "", "");
add
CommandsMenuBar.addNewChild("jscript_system", 11, "jscript_SetAppAsDefault", "SetAppAsDefault()", false, "", "");
and before
case 'jscript_SetAutoLogonUser':
add
case 'jscript_SetAppAsDefault':
  HandleCommandsSelectionMenu('{JSCRIPT}=SetAppAsDefault("Program ID")');
  break;
In jscript.js add
function SetAppAsDefault(ProgId)
{
  position="jscript.js";
whatfunc="SetAppAsDefault()";

RunCmd('"' + wpipath + '\\Tools\\WPI Tool.exe" /Action=SetAppAsDefaultAll /ProgId="' + ProgId + '"', false, true);
}

And replace WPI Tool.exe with the attached one.

Attached Files




How to remove advertisement from MSFN

#2
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,739 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Got it






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN