Ran into an issue recently with a customer who’s upgrade to ColdFusion 9 caused the Migration Wizard to freeze up when you opened the ColdFusion Administrator for the first time. Turns out, you can disable this very simply with the following code taking advantage of the ColdFusion Admin API:
<cfset cfadminob = createObject("component","cfide.adminapi.administrator").login("password") >
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("MXMigrationFlag","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("migrationFlag","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("SetupWizardFlag","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("migrateCF5","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("migrateCF6","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("setupSampleApps","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("setupOdbc","No")>
<cfset createObject("component","cfide.adminapi.administrator").setAdminProperty("setupEnabldRds","No")>
Alternately, you could re-enable the wizard by setting all these values to “Yes”, I’ve seen a few installs that don’t have the wizard enabled.
No related posts.
A small note, but you should be able to re-use the administrator object when setting the properties, like such:
@Tony, yeah I was doing a lot of copying and pasting that night, so it was a quick and dirty fix.