Azare Puasa

Note To Self

Connect

  • Facebook
  • Twitter
  • Linkedin
  • Home
  • Blog
  • My Fave Videos
  • Success Strategies
  • Achievements
  • Baking For Men
  • Matters of the Heart
  • Linux
  • WordPress
  • Programming
  • Book Review
  • Others

How to: Create script-created feature set

Posted on January 12, 2011 by Azare Puasa

I wanted to prompt another SdAskOptions dialog before the one i have currently in my installer and the problem I faced was the two options on the first dialog was added onto the second dialog. I scoured the web for an answer. A solution i found is to uncheck and unhide the feature items of the first SdAskOptions before showing the second options dialog. It worked but I am not satisfied. I wanted a more elegant solution. It turns out the problem is the way i created the script created feature set was not correct.

So how should a script-created feature set be properly created? Simple. Declare a string variable and initialize it.
STRING szREGION_SET;
.
.
szMyCustomFeature = “my_feature_set”;

Or declare a constant if the feature set scope is global.

#define szMyCustomFeature “CTFeatureSet”

Each feature set should be unique.

So what did i do wrong? On both instances of SdAskoptions initialization, my script created feature set is a string variable without value. My deduction might be wrong. I think since i did not initialize a string value for my feature set variable, I am actually creating a null string feature set and when I added items in the second function, i am actually adding it to this null string feature set.

About Azare

He is a full-time software developer and an Internet Infopreneur. He has a decade of experience developing Installshield Installscript. After getting his RHCE, he has short stint as a Redhat System Engineer. His work now involves coding Java language. In his free time, how dabbles with Wordpress website development and SEO. He loves archery and golf.

Contact Azare

Step 1 of 2

50%

Azare’s bookshelf: read

Click Millionaires: Work Less, Live More with an Internet Business You Love
Outsource Smart: Be Your Own Boss... Without Letting Your Business Be the Boss of You
How I Made My First Million on the Internet and How You Can Too!: The Complete Insider's Guide to Making Millions with Your Internet Business
Winning The Game of Life!
The $100 Startup: Reinvent the Way You Make a Living, Do What You Love, and Create a New Future
The Laptop Millionaire
Speed Reading in a Week: Teach Yourself
The 4-Hour Workweek
Think and Grow Rich
The Monk and the Riddle: The Education of a Silicon Valley Entrepreneur
Success as an Introvert for Dummies
The Clean Coder: A Code of Conduct for Professional Programmers
Be Rich and Happy
Celebrating Failure: The Power of Taking Risks, Making Mistakes, and Thinking Big
The Art of Readable Code
A Gift to My Children: A Father's Lessons for Life and Investing
Zero to One: Notes on Startups, or How to Build the Future

Copyright ©2025 · Azare Puasa - All Rights Are Reserved · Terms & Conditions· Privacy Policy

Copyright © 2025 · Azare Puasa on Genesis Framework · WordPress · Log in