Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Posts
    5

    Peekaboo! Spontaneous reconfig MS Office when running my Setup

    I have a serious problem with a Setup for my VB6 application that I have made with SF7:

    In the file list I have a number of MS OCX's and DLL's which I install to %SystemFolder%. For each file I have "Never overwrite existing file" set. Furthermore, for the OCX's I have "Register COM interfaces" set where possible.

    I also have VB6 checked under "Dependencies".

    The problem is this:

    When I run the setup on a PC where "Microsoft Office 2003" is installed, it causes MS Office to spontaneously try to reconfigure itself. It looks as if I am overwriting and possibly reregistering a DLL or OCX that MS Office also uses. However, I thought I had prevented that by using "Never overwrite existing file".

    If this happens when a new customer is using the Setup then I'm worried that this will scare him into abandoning our setp procedure for good.

    Does anybody know what could be causing this and how I can prevent this from happening from within SF7?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    If you (examples only) register c:\windows\system32\msfile.ocx
    and office had it in c:\program files\common files\Microsoft shared\msfile.ocx
    Now you've reconfigured msfile.ocx to be yours w/o overwriting it.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Feb 2009
    Posts
    5

    Spontaneous reconfig MS Office

    If I follow you correctly, a better approach would be not to Register each MS OCX automatically using the File Properties but, in coding:

    1. Interrogate Registry to see if the OCX is already registered.

    2. Only register if the OCX is not already registered.

    As far as I can see, it's safe to copy the OCX to Windows\System32 with 'Don't overwrite existing file'.

    If this is correct, then the next question is 'How do I determine whether an OCX is already registered'?

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Pirie View Post
    the next question is 'How do I determine whether an OCX is already registered'?
    Depending on the object, you need to check for a registry entry.
    sometimes the easist way to do this is to export the registry; then do a regsvr32 on the ocx and export the registry then compare the two exports.

    You can also use something like regmon to monitor the registry changes that it makes.

    Of course, you need to do this on a system that doesn't already have it. or do a regsvr32 /u 1st.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Feb 2009
    Posts
    5

    Peekaboo! Spontaneous reconfig MS Office

    mmm... It sounds quite complicated to automate this in an sf7 procedure.

    I suppose that I could also program my sf7 installation procedure to install all MS dependencies to my installation folder (not Windows\System32) and not register them. In that way, I don't get in the way of any other apps (like MS Office) that use some of the files and have registered them. This approach goes at the expense of having duplicate copies of controls on the user's system of course but it seems to me that this would be safe. Do you agree?

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    You would do the investigation OUTSIDE of SUF -- on a test machine, manually; once you identify the registry setting that indicates the ocx is installed & registered, you SUF could would simple do a Registry.DoesKeyExist() call to determine whether or not to install it.

    yes, just installing it your application folder would lead to multiple copies of the file installed -- but what you're doing now also does that.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    May 2009
    Posts
    1

    Spontaneous reconfg

    The problem you are facing regarding your computer is a complicated one. one of my friend had faced the similar problem earlier. He had sought help from supportonclick.com and it solved his problem immediately. You may also opt for their support and i hope it will also help to solve your problem.

Similar Threads

  1. New Features in Setup Factory 8.0
    By Ted Sullivan in forum Setup Factory 8.0
    Replies: 0
    Last Post: 07-31-2008, 02:38 PM
  2. New Features in Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 08-12-2004, 12:13 PM
  3. FAQ: Setup Factory 5.0 Frequently Asked Questions
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-10-2002, 09:50 AM
  4. HOWTO: Build a Setup from the Command Line
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-08-2002, 01:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts