Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I have a problem using Wise for Win

I have a problem using Wise for Win

I have a problem using Wise for Win

I have a problem using Wise for Windows Installer someone may be able to help with...

During my installation I want to install multiple copies of a file. The installer will be able to enter the number of copies of the file that they want installed into a dialog text field.  The text field will have a property e.g "NUMFILES". I can read the value of this property - But how do I then get Windows Installer to install this number of files?

RE: I have a problem using Wise for Win

You will need a custom action.  If on a machine with IE 4 or better you should be able to use a custom VB/JScript action.  If embedded they can easily retrieve the value of the NUMFILES property (Session.Property("NUMFILES")).

If your audience is diverse (don't know if the WSH and FSO objects are available) you can use a C++ dll or (if using Wise Package Studio) a Wise Script Editor.  Both of these will allow you to retrieve the property.

Barring that you can write the information to the registry and use a compiled program in the language of your choice as a custom action that runs at the end of the install to copy the files.

IOW, there is no way internal to the Wise Installer technology to accomplish what you want... except...  If there are a finite number of files (say 1-10) you could place the files in separate components and give each component a condition of NUMFILES>=X (where x is a number from 1-10).


-Focus on the solution to the problem, not the obstacles in the way.-

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close