LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application builder problem...

I've built a .vi and have built it into a stand-alone application using the
application builder.

It didn't work.

When calling the manufacturer of the board I'm using they told me I need
to also include a .dll file. Which I then did using the application builder.

It still didn't work.

They then told me I need to 'register' the .dll file using an .exe called
'regsvr32.exe' found in the Windows directory.

The program finally worked!

However, I do not want each user to have to go through the pain in the *ss
of registering this .dll when I distribute the .vi.

Does anyone know how to have the application builder register a .dll?

Can I somehow call 'regsvr32.exe' and have it register during installation?

If anyone could
help I would greatly appreciate it.

Dave Neumann
Eaton Corporation
Phone: (414)449-6263
Fax: (414)449-6078
neumads@ch.etn.com
0 Kudos
Message 1 of 8
(3,087 Views)
I finally went with a third party installer, InstallShield, to register my
OCXs and dlls. It was more reliable than trying to write my own
registration vi with the 'regsvr32' command.

I asked at NI Week if the LabVIEW 6i version of Application Builder
would register components. I was told it doesn't.

Regards,

Alan Brause



"Dave Neumann" wrote in message
news:39a527bb@newsgroups.ni.com...
>
> I've built a .vi and have built it into a stand-alone application using
the
> application builder.
>
> It didn't work.
>
> When calling the manufacturer of the board I'm using they told me I need
> to also include a .dll file. Which I then did using the application
builder.
>
> It still didn't work.
>
> They then told me I need to 'register' the .dll f
ile using an .exe called
> 'regsvr32.exe' found in the Windows directory.
>
> The program finally worked!
>
> However, I do not want each user to have to go through the pain in the *ss
> of registering this .dll when I distribute the .vi.
>
> Does anyone know how to have the application builder register a .dll?
>
> Can I somehow call 'regsvr32.exe' and have it register during
installation?
>
> If anyone could help I would greatly appreciate it.
>
> Dave Neumann
> Eaton Corporation
> Phone: (414)449-6263
> Fax: (414)449-6078
> neumads@ch.etn.com
>
0 Kudos
Message 2 of 8
(3,087 Views)
Dave Neumann wrote:
>
> I've built a .vi and have built it into a stand-alone application using the
> application builder.
>
> It didn't work.
>
> When calling the manufacturer of the board I'm using they told me I need
> to also include a .dll file. Which I then did using the application builder.
>
> It still didn't work.
>
> They then told me I need to 'register' the .dll file using an .exe called
> 'regsvr32.exe' found in the Windows directory.
>
> The program finally worked!
>
> However, I do not want each user to have to go through the pain in the *ss
> of registering this .dll when I distribute the .vi.
>
> Does anyone know how to have the application builder register a .dll?
>
> Can I somehow call 'regsvr32.exe' and have it register during installa
tion?
>
> If anyone could help I would greatly appreciate it.
>

Dave,
There is an option in the LV 5.1 app builder that allows you to run
an executable after the rest of the setup is complete. Under the
Installer tab, select Advanced. I would think this would do what you
need, but as far as I know, you can only specifiy one executable to run,
not multiple.

Regards,
Dave Thomson

-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------
0 Kudos
Message 3 of 8
(3,087 Views)
I've tried that executable run option that you're referring to, and I
couldn't get it to work. Wonder if I'm the only one.

Mark

In article <39A575DC.A049396B@al.noaa.gov>,
David Thomson wrote:
> Dave Neumann wrote:
> >
> > I've built a .vi and have built it into a stand-alone application
using the
> > application builder.
> >
> > It didn't work.
> >
> > When calling the manufacturer of the board I'm using they told me I
need
> > to also include a .dll file. Which I then did using the application
builder.
> >
> > It still didn't work.
> >
> > They then told me I need to 'register' the .dll file using an .exe
called
> > 'regsvr32.exe' found in the Windows directory.
> >
> > The program finally worked!
> >
> > However, I do not want each user to have to go through the pain in
the *ss
> > of registering this .dll when I distribute the .vi.
> >
> > Does anyone know how to have the application builder register a
..dll?
> >
> > Can I somehow call 'regsvr32.exe' and have it register during
installation?
> >
> > If anyone could help I would greatly appreciate it.
> >
>
> Dave,
> There is an option in the LV 5.1 app builder that allows you to run
> an executable after the rest of the setup is complete. Under the
> Installer tab, select Advanced. I would think this would do what you
> need, but as far as I know, you can only specifiy one executable to
run,
> not multiple.
>
> Regards,
> Dave Thomson
>
> -------------------------------------------------------------
> David Thomson 303-499-1973 (voice and fax)
> Original Code Consulting dthomson@originalcode.com
> www.originalcode.com
> National Instruments Alliance Program Member
> -------------------------------------------------------------
> Research Scientist 303-497-3470 (voice)
> NOAA Aeronomy Laboratory 303-497-5373 (fax)
> Boulder, Colorado dthomson@al.noaa.gov
> -------------------------------------------------------------
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 4 of 8
(3,087 Views)
mark.wysong@ae.ge.com wrote:
>
> I've tried that executable run option that you're referring to, and I
> couldn't get it to work. Wonder if I'm the only one.
>
> Mark
>
I've used it successfully. Obviously not for the dll registration
program being discussed, but it does seem to run things for me.

Dave
-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-537
3 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------
0 Kudos
Message 5 of 8
(3,087 Views)
Same problem here
I have tried everything to run a executeble (both exe and bat files) after
instalation and it doesen't work.

Esben


wrote in message news:8o3v7s$dlj$1@nnrp1.deja.com...
> I've tried that executable run option that you're referring to, and I
> couldn't get it to work. Wonder if I'm the only one.
>
> Mark
>
> In article <39A575DC.A049396B@al.noaa.gov>,
> David Thomson wrote:
> > Dave Neumann wrote:
> > >
> > > I've built a .vi and have built it into a stand-alone application
> using the
> > > application builder.
> > >
> > > It didn't work.
> > >
> > > When calling the manufacturer of the board I'm using they told me I
> need
> > > to also include a .dll file. Which I then did using the application
> builder.
> > >
> > > It still didn't work.
> > >
> > > They then told me I need to 'register' the .dll file using an .exe
> called
> > > 'regsvr32.exe' found in the Windows directory.
> > >
> > > The program finally worked!
> > >
> > > However, I do not want each user to have to go through the pain in
> the *ss
> > > of registering this .dll when I distribute the .vi.
> > >
> > > Does anyone know how to have the application builder register a
> .dll?
> > >
> > > Can I somehow call 'regsvr32.exe' and have it register during
> installation?
> > >
> > > If anyone could help I would greatly appreciate it.
> > >
> >
> > Dave,
> > There is an option in the LV 5.1 app builder that allows you to run
> > an executable after the rest of the setup is complete. Under the
> > Installer tab, select Advanced. I would think this would do what you
> > need, but as far as I know, you can only specifiy one executable to
> run,
> > not multiple.
> >
> > Regards,
> > Dave Thomson
> >
> > -------------------------------------------------------------
> > David Thomson 303-499-1973 (voice and fax)
> > Original Code Consulting dthomson@originalcode.com
> > www.originalcode.com
> > National Instruments Alliance Program Member
> > -------------------------------------------------------------
> > Research Scientist 303-497-3470 (voice)
> > NOAA Aeronomy Laboratory 303-497-5373 (fax)
> > Boulder, Colorado dthomson@al.noaa.gov
> > -------------------------------------------------------------
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 6 of 8
(3,087 Views)
From the Application Builder Release Notes:


Install the file as part of your installation and
then run it afterwards to make the necessary modifications. The file
that you run must be one of the files that you install.


Maybe the problem is that you have to include the file to execute.

Jean-Pierre Drolet

"E" a �crit dans le message news:
39a6b567@newsgroups.ni.com...
> Same problem here
> I have tried everything to run a executeble (both exe and bat files)
after
> instalation and it doesen't work.
>
> Esben
>
>
> wrote in message
news:8o3v7s$dlj$1@nnrp1.deja.com...
> > I've tried that executable run option that you're referring to, and I
> > couldn't get it to work. Wonder if I'm the only one.
> >
> > Mark
> >
> > In article <39A575DC.A049396B@al.noaa.gov>,
> > David Thomson wrote:
> > > Dave Neumann wrote:
> > > >
> > > > I've built a .vi and have built it into a stand-alone application
> > using the
> > > > application builder.
> > > >
> > > > It didn't work.
> > > >
> > > > When calling the manufacturer of the board I'm using they told me I
> > need
> > > > to also include a .dll file. Which I then did using the application
> > builder.
> > > >
> > > > It still didn't work.
> > > >
> > > > They then told me I need to 'register' the .dll file using an .exe
> > called
> > > > 'regsvr32.exe' found in the Windows directory.
> > > >
> > > > The program finally worked!
> > > >
> > > > However, I do not want each user to have to go through the pain in
> > the *ss
> > > > of registering this .dll when I distribute the .vi.
> > > >
> > > > Does anyone know how to have the application builder register a
> > .dll?
> > > >
> > > > Can I somehow call 'regsvr32.exe' and have it register during
> > installation?
> > > >
> > > > If anyone could help I would greatly appreciate it.
> > > >
> > >
> > > Dave,
> > > There is an option in the LV 5.1 app builder that allows you to run
> > > an executable after the rest of the setup is complete. Under the
> > > Installer tab, select Advanced. I would think this would do what you
> > > need, but as far as I know, you can only specifiy one executable to
> > run,
> > > not multiple.
> > >
> > > Regards,
> > > Dave Thomson
> > >
> > > -------------------------------------------------------------
> > > David Thomson 303-499-1973 (voice and fax)
> > > Original Code Consulting dthomson@originalcode.com
> > > www.originalcode.com
> > > National Instruments Alliance Program Member
> > > -------------------------------------------------------------
> > > Research Scientist 303-497-3470 (voice)
> > > NOAA Aeronomy Laboratory 303-497-5373 (fax)
> > > Boulder, Colorado dthomson@al.noaa.gov
> > > -------------------------------------------------------------
> > >
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
>
0 Kudos
Message 7 of 8
(3,087 Views)
Aha!!! *light bulb* That must be the problem. 1) I didn't read that
in the Application Builder Release Notes and 2) I didn't put the
executable as one of the files that I installed.

Thanks. I'll check that out.

In article <39a8298e@newsgroups.ni.com>,
"Jean-Pierre Drolet" wrote:
> From the Application Builder Release Notes:
>
>
> Install the file as part of your installation and
> then run it afterwards to make the necessary modifications. The file
> that you run must be one of the files that you install.
>

>
> Maybe the problem is that you have to include the file to execute.
>
> Jean-Pierre Drolet
>
> "E" a �crit dans le message news:
> 39a6b567@newsgroups.ni.com...
> > Same problem here
> > I have tried everything to run a executeble (both exe and bat
files)
> after
> > instalation and it doesen't work.
> >
> > Esben
> >
> >
> > wrote in message
> news:8o3v7s$dlj$1@nnrp1.deja.com...
> > > I've tried that executable run option that you're referring to,
and I
> > > couldn't get it to work. Wonder if I'm the only one.
> > >
> > > Mark
> > >
> > > In article <39A575DC.A049396B@al.noaa.gov>,
> > > David Thomson wrote:
> > > > Dave Neumann wrote:
> > > > >
> > > > > I've built a .vi and have built it into a stand-alone
application
> > > using the
> > > > > application builder.
> > > > >
> > > > > It didn't work.
> > > > >
> > > > > When calling the manufacturer of the board I'm using they told
me I
> > > need
> > > > > to also include a .dll file. Which I then did using the
application
> > > builder.
> > > > >
> > > > > It still didn't work.
> > > > >
> > > > > They then told me I need to 'register' the .dll file using an
..exe
> > > called
> > > > > 'regsvr32.exe' found in the Windows directory.
> > > > >
> > > > > The program finally worked!
> > > > >
> > > > > However, I do not want each user to have to go through the
pain in
> > > the *ss
> > > > > of registering this .dll when I distribute the .vi.
> > > > >
> > > > > Does anyone know how to have the application builder register
a
> > > .dll?
> > > > >
> > > > > Can I somehow call 'regsvr32.exe' and have it register during
> > > installation?
> > > > >
> > > > > If anyone could help I would greatly appreciate it.
> > > > >
> > > >
> > > > Dave,
> > > > There is an option in the LV 5.1 app builder that allows you
to run
> > > > an executable after the rest of the setup is complete. Under
the
> > > > Installer tab, select Advanced. I would think this would do
what you
> > > > need, but as far as I know, you can only specifiy one executable
to
> > > run,
> > > > not multiple.
> > > >
> > > > Regards,
> > > > Dave Thomson
> > > >
> > > > -------------------------------------------------------------
> > > > David Thomson 303-499-1973 (voice and fax)
> > > > Original Code Consulting dthomson@originalcode.com
> > > > www.originalcode.com
> > > > National Instruments Alliance Program Member
> > > > -------------------------------------------------------------
> > > > Research Scientist 303-497-3470 (voice)
> > > > NOAA Aeronomy Laboratory 303-497-5373 (fax)
> > > > Boulder, Colorado dthomson@al.noaa.gov
> > > > -------------------------------------------------------------
> > > >
> > >
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> >
> >
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 8 of 8
(3,086 Views)