We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Problem when installing SDK on Windows 8.1

asked 2014-05-18 10:03:23 +0200

joonne gravatar image

Hi,

I just replaced my HDD with SSD and now I would like to install SDK so I could get back to work but the installer complains about that VirtualBox is not installed but it is. Did anyone have this kind of problem?

edit retag flag offensive close delete

Comments

3 Answers

Sort by » oldest newest most voted
2

answered 2014-05-25 19:26:33 +0200

utkiek gravatar image

updated 2014-05-26 12:02:02 +0200

DaTa gravatar image

After update virtualbox to 4.3.12 the path variable is VBOX_MSI_INSTALL_PATH. The SDK installer expects VBOX_INSTALL_PATH. (Windows 7 64). Maybe this is the value for a fresh installed virtualbox

Thanks to kaltsi. Setting the correct path and starting the installer in the same DOS-Box works fine.

I run in this problem because updating sdk crashed with a error I have forgotten (maybe "undefined variable" or so). I removed it and started a fresh installation ..

Summary To fix this issue, add the environnement variable VBOX_INSTALL_PATH in addition to VBOX_MSI_INSTALL_PATH, with the same value. Now QtCreator can start the various VMs and does not state "Virtual machine 'XXXX' is not installed" anymore.

edit flag offensive delete publish link more

Comments

Yep, this will be fixed in the next SDK update at the latest. The update will be released quite soon after the next phone release.

kaltsi ( 2014-05-26 12:44:09 +0200 )edit

Thanks, everything works now :)

joonne ( 2014-05-26 21:44:12 +0200 )edit

@kaltsi it's been almost a year now and that problem still exists.

Just now i downloaded virtual box and the sailfish sdk on a fresh windows install and then wondered why the mersdk vm wasnt found...

had to uninstall, add that envVar, and reinstall. (sure, could probably have started the vm by hand, but where's the fun in that?) in addition to that inconvenience, after uninstalling and reinstalling again, the installer did not create any shortcuts. after the first installation, they were there, now they arent.

edit: nevermind about that, found the shortcuts on the disk, beats me why the startmenu doesnt show them... stupid windows...

mlatu ( 2015-04-02 14:22:15 +0200 )edit

Let's ping @Jare if he can figure out something.

kaltsi ( 2015-04-02 17:52:54 +0200 )edit
0

answered 2014-05-18 14:25:50 +0200

kaltsi gravatar image

Did you also upgrade your windows version or did it stay the same?

Did you reinstall VirtualBox after replacing the HDD?

What is the exact error message you get?

The installer tries to find the VirtualBox install path from windows registry like this (you can try this on a DOS prompt):

reg query hklm\software\oracle\virtualbox /v installdir

If that does not return anything, it will try to read the path from the environment variable VBOX_INSTALL_PATH.

edit flag offensive delete publish link more

Comments

The windows version stayed same and I reinstalled VirtualBox several times after replacing HDD. The error message is this: "VirtualBox not installed: You need a working VirtualBox installation. Please download it from....."

I ran the command you gave and it said this:

HKEY_LOCAL_MACHINE\software\oracle\virtualbox

installdir REG_SZ C:\Program Files\Oracle\VirtualBox\

joonne ( 2014-05-18 14:42:36 +0200 )edit

Well that seems correct.. if you open the DOS prompt and type 'set', do you see the VBOX_INSTALL_PATH variable there too?

Could you try starting the installer from the DOS prompt to see if it makes a difference? Also then you could run it with --verbose option to get some more output to see if there's anything helpful there.

kaltsi ( 2014-05-18 15:18:24 +0200 )edit

well I can't try start it from command prompt since it is not installed in my system yet,but I tried the 'set'-command and there isn't anything like VBOX_INSTALL_PATH or similar things. Could something be wrong because I removed the file indexing method from the SSD ( C: ) as was told in a SSD set-up guide that I read?

joonne ( 2014-05-18 15:27:39 +0200 )edit

I tried to start the installer from command prompt and here's a picture of the result:

https://www.dropbox.com/s/gd64p8ar8gh2rd8/Screenshot%202014-05-18%2015.47.07.png

joonne ( 2014-05-18 15:49:25 +0200 )edit

That worked ! Thank you so much for help, I'm going to run the installer now and look what happens :)

joonne ( 2014-05-18 16:08:08 +0200 )edit
0

answered 2014-05-18 16:02:48 +0200

kaltsi gravatar image

I have no experience with Windows 8 or 8.1, but it seems strange that apparently the installer worked before, but now suddenly doesn't? On my Windows 7 DOS prompt I can see the vbox environment variable mentioned before.

Try setting the virtualbox install path like this in DOS prompt:

set VBOX_INSTALL_PATH=C:\program files\oracle\virtualbox

Then start the installer again from the same DOS prompt and let's see if that helps.

edit flag offensive delete publish link more

Comments

This worked for me.

hnbv ( 2014-05-26 01:28:18 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-05-18 10:03:23 +0200

Seen: 768 times

Last updated: May 26 '14