11-26-2019 03:27 AM
I have a program created on my developer pc. It runs very nice without any issues.
I want this program to be installed on a target machine, so I created a distribution installer.
The release configuration is set to "All configurations".
In the installer I set the Minimum operating system version to WindowsXP
I build the installer on my pc without problems. I even run the installer and the program is installed on my pc with no issues.
But when I try to install it on the target machine I get the following message:
"Setup.exe is not a valid Win32 program"
What can be the reason for this ??
08-24-2020 04:19 AM
Hey MikaelD,
On the web there seems to be many different possible reasons:
- Corrupted .EXE, incomplete "download" (I'd imagine copy), CD drivers problems
- File not designed for your Windows OS
If you haven't already, I'd suggest you rebuild your application and redeploy it with a different CD/USB (it's worth a shot!) And make sure you're building from LabVIEW 32-bit? (I imagine WindowsXP machine is 32 not 64)
08-24-2020 05:00 AM
Thank you A-Guz-Man,
I’ll give it a shot!
MikaelD
08-24-2020 05:15 AM
A pleasure MikaelD!
A few other ideas I got from the web:
Other info that might be useful:
08-24-2020 05:49 AM
@A-Guz-Man wrote:
A pleasure MikaelD!
A few other ideas I got from the web:
- Copy the files to the hard drive (locally) and run the installer from there instead of from the CD/USB: http://www.databaseforum.info/8/566864.aspx
- Updating the CD/DVD drivers (a bit weird but it appears in many external forums)
- Run as Administrator: https://forum.aerosoft.com/index.php?/topic/42140-2010-mytraffic/
Other info that might be useful:
- Does this happen when you install other programs locally? From an external drive (USB/DVD/CD)?
- What is the LV version of the development environment?
I have seen this before a couple of times when trying to run an installation on a target machine
I use Labview 2020 proffesional
MikaelD
08-24-2020 06:09 AM
I haven't tried your procedure to build a Windows XP application from LabVIEW 2020 (and I assume Windows 10). I see a few potential risks but you might prove me wrong:
From the compatibility chart, it seems LabVIEW 2015 SP1 is the latest LV compatible application that can run on Windows XP SP3.
And from my LabVIEW 2020, I don't see the option to have a minimum Windows XP supported OS (which makes sense because LV 2020 is supported from Windows 7 onwards)
Sounds like you'd need to build the application from an older LabVIEW version that supports LabVIEW 2015 deployment (and thus Windows XP running)
08-24-2020 06:24 AM
Ok, I will try that
Thanks
MikaelD
08-26-2020 09:19 AM
Is this a LabView or LabWindows issue?
08-26-2020 11:28 AM
Hi,
Sorry I can see that I answered that I use LabView 2020 to A-Gus-Man earlier, but this is actually a LabWindows/CVI issue.
And my LabWindows version is 2011
So if you have any ideas on how to solve this, it will be highly appreciated.
\\ MikaelD
08-28-2020 09:43 AM - edited 08-28-2020 09:45 AM
The error seems familiar but I'm drawing a blank right now on the exact cause. I definitely have seen something like that after a partial/corrupt/incorrect download, so it is worth making sure the size and hash are correct on the target machine. Also, have you checked 32 vs 64 bit as suggested earlier?