?
Solved

InstallShield from Delphi and Registry

Posted on 1998-03-26
12
Medium Priority
?
220 Views
Last Modified: 2010-04-06
I am using the Install Shield "Registry - Values" form.
I want to add the following value:
                              "C:\Folder One\File.exe" "%1"
How can I do this?
Because I have problems with the symbols "
0
Comment
Question by:jpussacq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 

Author Comment

by:jpussacq
ID: 1360864
Edited text of question
0
 
LVL 1

Expert Comment

by:Socrates050697
ID: 1360865
I've done this by adding the value

c:\Folder One\File.exe "%1"

(note - only put " marks around the %1 - this is so that long file names with spaces in them work)
make sure its a string value.
If this doesn't work then I'm not sure as this works fine on my computer.

0
 
LVL 1

Expert Comment

by:Greedy
ID: 1360866
if you are using install shield express 2 you can inport a reg file that you export with regedit...I'm just mentioning this just in case you can't find a way to put it in the "normal" way

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jpussacq
ID: 1360867
I have done this
                            c:\Folder One\File.exe "%1"

But after installation, the following appeared in the Registry:

                            c:\Folder One\File.exe%1"

I don´t know where is the problem.
0
 

Author Comment

by:jpussacq
ID: 1360868
I have done this
                                  c:\Folder One\File.exe "%1"

But after installation, the following appeared in the Registry:

                                  c:\Folder One\File.exe%1"

I don´t know where is the problem, but I want that the following appear in the Registry:

                                  "c:\Folder One\File.exe" "%1"

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360869
Why not using greedy's way?
0
 
LVL 1

Expert Comment

by:Socrates050697
ID: 1360870
Does typing in

 "c:\Folder One\File.exe "%1""

work?

 Are you using NT or 95? I vaguley remember having similar problems under NT a while ago.
0
 

Author Comment

by:jpussacq
ID: 1360871
I put "c:\Folder One\File.exe "%1""

and in the registry appears:
"c:\Folder One\File.exe%1""

(I am using Windows 95)
(I can not import a regedit file beacuse the Registry Value must contain the variable <INSTALLDIR>)
0
 

Expert Comment

by:pchar
ID: 1360872
You could possibly try typing:
"c:\Folder One\File.exe" ""%1""
or maybe:
"c:\Folder One\File.exe" ""%1"

Now if I could dig out my copy if Installshield I could give it a go...I'm only guessing at the moment...
0
 

Author Comment

by:jpussacq
ID: 1360873
Thank you pchar, but your comment can not solve my problem.-
0
 
LVL 1

Expert Comment

by:extreme
ID: 1360874
I had the same problem than you, the only way I found to solve this problem is to write a little DLL that makes the registry entried need to register my file types in Windows. Installshield has the support for call custom DLLs, if you want e-mail me at: k2xt@iname.com, and I'll send you the DLL, is not big deal, but works.
0
 

Accepted Solution

by:
KirkGray earned 60 total points
ID: 1360875
If you want a really quick hack U could:

Write a batch file (Argh!) that creates the proper .reg file given <install dir> as a parameter.
 
Then after returning from the .bat file install express could then add the reg file to the registry.

If these two are in the wrong order, execute the .reg file from the end of the batch file that made it!  This should install it into the registry.  If not, try regedit <filename>

U will have to have a look at a reg file to work out how, but I'ts not hard.  Just a text file in a similiar format to .ini files.

Good luck.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question